lazy_identity.go

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