diff options
Diffstat (limited to 'graphql/connections/gen_timeline.go')
-rw-r--r-- | graphql/connections/gen_timeline.go | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/graphql/connections/gen_timeline.go b/graphql/connections/gen_timeline.go index 4d417a45..1a4b2fe5 100644 --- a/graphql/connections/gen_timeline.go +++ b/graphql/connections/gen_timeline.go @@ -13,17 +13,17 @@ import ( // BugTimelineItemEdgeMaker define a function that take a bug.TimelineItem and an offset and // create an Edge. -type BugTimelineItemEdgeMaker func(value bug.TimelineItem, offset int) Edge +type TimelineItemEdgeMaker func(value bug.TimelineItem, offset int) Edge -// BugTimelineItemConMaker define a function that create a models.TimelineItemConnection -type BugTimelineItemConMaker func( +// TimelineItemConMaker define a function that create a models.TimelineItemConnection +type TimelineItemConMaker func( edges []models.TimelineItemEdge, nodes []bug.TimelineItem, info models.PageInfo, totalCount int) (models.TimelineItemConnection, error) -// BugTimelineItemCon will paginate a source according to the input of a relay connection -func BugTimelineItemCon(source []bug.TimelineItem, edgeMaker BugTimelineItemEdgeMaker, conMaker BugTimelineItemConMaker, input models.ConnectionInput) (models.TimelineItemConnection, error) { +// TimelineItemCon will paginate a source according to the input of a relay connection +func TimelineItemCon(source []bug.TimelineItem, edgeMaker TimelineItemEdgeMaker, conMaker TimelineItemConMaker, input models.ConnectionInput) (models.TimelineItemConnection, error) { var nodes []bug.TimelineItem var edges []models.TimelineItemEdge var cursors []string |