diff options
author | Michael Muré <batolettre@gmail.com> | 2018-08-13 15:28:16 +0200 |
---|---|---|
committer | Michael Muré <batolettre@gmail.com> | 2018-08-13 15:28:47 +0200 |
commit | df144e727a858ed07e3c9328d91efe052c4781e1 (patch) | |
tree | bfbfeea70f97ab3d4274c8e5add2c3aeeac1423b /graphql/connections/gen_operation.go | |
parent | f2f779c5a8b4efe67317bbffe110a9880c1f529a (diff) | |
download | git-bug-df144e727a858ed07e3c9328d91efe052c4781e1.tar.gz |
fix some linting trouble
Diffstat (limited to 'graphql/connections/gen_operation.go')
-rw-r--r-- | graphql/connections/gen_operation.go | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/graphql/connections/gen_operation.go b/graphql/connections/gen_operation.go index 26936dfe..570c67cd 100644 --- a/graphql/connections/gen_operation.go +++ b/graphql/connections/gen_operation.go @@ -11,14 +11,18 @@ import ( "github.com/MichaelMure/git-bug/graphql/models" ) +// BugOperationEdger define a function that take a bug.Operation and an offset and +// create an Edge. type BugOperationEdger func(value bug.Operation, offset int) Edge +// BugOperationConMaker define a function that create a models.OperationConnection type BugOperationConMaker func( edges []models.OperationEdge, nodes []bug.Operation, info models.PageInfo, totalCount int) (models.OperationConnection, error) +// BugOperationCon will paginate a source according to the input of a relay connection func BugOperationCon(source []bug.Operation, edger BugOperationEdger, conMaker BugOperationConMaker, input models.ConnectionInput) (models.OperationConnection, error) { var nodes []bug.Operation var edges []models.OperationEdge |