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_bug.go | |
parent | f2f779c5a8b4efe67317bbffe110a9880c1f529a (diff) | |
download | git-bug-df144e727a858ed07e3c9328d91efe052c4781e1.tar.gz |
fix some linting trouble
Diffstat (limited to 'graphql/connections/gen_bug.go')
-rw-r--r-- | graphql/connections/gen_bug.go | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/graphql/connections/gen_bug.go b/graphql/connections/gen_bug.go index 9224c696..e9654986 100644 --- a/graphql/connections/gen_bug.go +++ b/graphql/connections/gen_bug.go @@ -10,14 +10,18 @@ import ( "github.com/MichaelMure/git-bug/graphql/models" ) +// StringEdger define a function that take a string and an offset and +// create an Edge. type StringEdger func(value string, offset int) Edge +// StringConMaker define a function that create a models.BugConnection type StringConMaker func( edges []LazyBugEdge, nodes []string, info models.PageInfo, totalCount int) (models.BugConnection, error) +// StringCon will paginate a source according to the input of a relay connection func StringCon(source []string, edger StringEdger, conMaker StringConMaker, input models.ConnectionInput) (models.BugConnection, error) { var nodes []string var edges []LazyBugEdge |