diff options
author | Michael Muré <batolettre@gmail.com> | 2022-08-01 17:16:45 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-08-01 17:16:45 +0200 |
commit | cd52872475f1b39f3fb6546606c1e78afb6c08e3 (patch) | |
tree | 9f04b1e1ee362e210e74aaa324d950058ed14bf2 /api/graphql/connections/gen_operation.go | |
parent | 2ade8fb1d570ddcb4aedc9386af46d208b129daa (diff) | |
parent | 56966fec5562c3a0e23340d0fbe754626c3beb64 (diff) | |
download | git-bug-cd52872475f1b39f3fb6546606c1e78afb6c08e3.tar.gz |
Merge pull request #835 from MichaelMure/op-base
entity/dag: proper base operation for simplified implementation
Diffstat (limited to 'api/graphql/connections/gen_operation.go')
-rw-r--r-- | api/graphql/connections/gen_operation.go | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/api/graphql/connections/gen_operation.go b/api/graphql/connections/gen_operation.go index 4bd84895..848cebd6 100644 --- a/api/graphql/connections/gen_operation.go +++ b/api/graphql/connections/gen_operation.go @@ -8,23 +8,23 @@ import ( "fmt" "github.com/MichaelMure/git-bug/api/graphql/models" - "github.com/MichaelMure/git-bug/bug" + "github.com/MichaelMure/git-bug/entity/dag" ) -// BugOperationEdgeMaker define a function that take a bug.Operation and an offset and +// DagOperationEdgeMaker define a function that take a dag.Operation and an offset and // create an Edge. -type OperationEdgeMaker func(value bug.Operation, offset int) Edge +type OperationEdgeMaker func(value dag.Operation, offset int) Edge // OperationConMaker define a function that create a models.OperationConnection type OperationConMaker func( edges []*models.OperationEdge, - nodes []bug.Operation, + nodes []dag.Operation, info *models.PageInfo, totalCount int) (*models.OperationConnection, error) // OperationCon will paginate a source according to the input of a relay connection -func OperationCon(source []bug.Operation, edgeMaker OperationEdgeMaker, conMaker OperationConMaker, input models.ConnectionInput) (*models.OperationConnection, error) { - var nodes []bug.Operation +func OperationCon(source []dag.Operation, edgeMaker OperationEdgeMaker, conMaker OperationConMaker, input models.ConnectionInput) (*models.OperationConnection, error) { + var nodes []dag.Operation var edges []*models.OperationEdge var cursors []string var pageInfo = &models.PageInfo{} |