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