Documentation ¶
Overview ¶
Package cursor provides a way to encode and decode cursors for paginated queries
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DecodeValue ¶
DecodeValue decodes a base64 encoded string into a string
func EncodeValue ¶
EncodeValue encodes a string into a base64 encoded string
Types ¶
type ProviderCursor ¶
type ProviderCursor struct { // CreatedAt is the creation time of the provider CreatedAt time.Time }
ProviderCursor is the the creation time of the provider
func NewProviderCursor ¶
func NewProviderCursor(encodedCursor string) (*ProviderCursor, error)
NewProviderCursor creates a new ProviderCursor from an encoded cursor
func (*ProviderCursor) String ¶
func (c *ProviderCursor) String() string
type RepoCursor ¶
RepoCursor is a cursor for listing repositories
func NewRepoCursor ¶
func NewRepoCursor(encodedCursor string) (*RepoCursor, error)
NewRepoCursor creates a new RepoCursor from an encoded cursor
func (*RepoCursor) String ¶
func (c *RepoCursor) String() string
Click to show internal directories.
Click to hide internal directories.