Documentation
¶
Index ¶
Constants ¶
View Source
const CursorTimestampFormat = "2006-01-02 15:04:05.999999 -0700 MST"
Variables ¶
This section is empty.
Functions ¶
func EncodeCursor ¶
func EncodeCursor(cursor DatetimeCursor) string
func StructToMap ¶
func StructToMap(obj interface{}) map[string]interface{}
Types ¶
type CursorPaginationInfo ¶
type CursorPaginationInfo[DBType any] struct { Next string `json:"next" serializer:"next"` Data []DBType `json:"data" serializer:"data"` }
func Paginate ¶
func Paginate[DBType any](settings SquirrelCursorPaginator[DBType], cursorString string) (*CursorPaginationInfo[DBType], error)
type DatetimeCursor ¶
func DecodeCursor ¶
func DecodeCursor(cursor string) (*DatetimeCursor, error)
Click to show internal directories.
Click to hide internal directories.