edges.go

 1package connections
 2
 3import "github.com/git-bug/git-bug/entity"
 4
 5// LazyBoardEdge is a special relay edge used to implement a lazy loading connection
 6type LazyBoardEdge struct {
 7	Id     entity.Id
 8	Cursor string
 9}
10
11// GetCursor return the cursor of a LazyBoardEdge
12func (lbe LazyBoardEdge) GetCursor() string {
13	return lbe.Cursor
14}
15
16// LazyBugEdge is a special relay edge used to implement a lazy loading connection
17type LazyBugEdge struct {
18	Id     entity.Id
19	Cursor string
20}
21
22// GetCursor return the cursor of a LazyBugEdge
23func (lbe LazyBugEdge) GetCursor() string {
24	return lbe.Cursor
25}
26
27// LazyIdentityEdge is a special relay edge used to implement a lazy loading connection
28type LazyIdentityEdge struct {
29	Id     entity.Id
30	Cursor string
31}
32
33// GetCursor return the cursor of a LazyIdentityEdge
34func (lbe LazyIdentityEdge) GetCursor() string {
35	return lbe.Cursor
36}