Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CursorToken ¶
type CursorToken struct { Mode Mode ValuePrimary string ValueSecondary string Direction SortDirection DirectionSecondary SortDirection PageSize int Extra Extra }
func Decode ¶
func Decode(tok string) (CursorToken, error)
func End ¶
func End() CursorToken
func Start ¶
func Start() CursorToken
func (*CursorToken) Token ¶
func (c *CursorToken) Token() string
func (*CursorToken) ValuePrimaryObjectId ¶
func (c *CursorToken) ValuePrimaryObjectId() (primitive.ObjectID, bool)
func (*CursorToken) ValueSecondaryObjectId ¶
func (c *CursorToken) ValueSecondaryObjectId() (primitive.ObjectID, bool)
type Filter ¶
type Filter interface { FilterQuery() mongo.Pipeline Pagination() (string, SortDirection, string, SortDirection) }
type SortDirection ¶
type SortDirection string //@enum:type
const ( SortASC SortDirection = "ASC" SortDESC SortDirection = "DESC" )
Click to show internal directories.
Click to hide internal directories.