Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CTKeySort ¶ added in v0.0.538
type CTKeySort struct { Mode Mode ValuePrimary string ValueSecondary string Direction SortDirection DirectionSecondary SortDirection PageSize int Extra Extra }
type CTPaginated ¶ added in v0.0.538
func (CTPaginated) IsEnd ¶ added in v0.0.539
func (c CTPaginated) IsEnd() bool
func (CTPaginated) IsStart ¶ added in v0.0.547
func (c CTPaginated) IsStart() bool
func (CTPaginated) Token ¶ added in v0.0.538
func (c CTPaginated) Token() string
type CursorToken ¶
func Decode ¶
func Decode(tok string) (CursorToken, error)
func End ¶
func End() CursorToken
func NewKeySortToken ¶ added in v0.0.538
func NewKeySortToken(valuePrimary string, valueSecondary string, direction SortDirection, directionSecondary SortDirection, pageSize int, extra Extra) CursorToken
func Page ¶ added in v0.0.538
func Page(p int) CursorToken
func PageEnd ¶ added in v0.0.538
func PageEnd() CursorToken
func Start ¶
func Start() CursorToken
type Filter ¶
type Filter interface { FilterQuery(ctx context.Context) mongo.Pipeline Pagination(ctx context.Context) (string, SortDirection, string, SortDirection) }
type SortDirection ¶
type SortDirection string //@enum:type
const ( SortASC SortDirection = "ASC" SortDESC SortDirection = "DESC" )
func (SortDirection) ToMongo ¶ added in v0.0.548
func (sd SortDirection) ToMongo() int
Click to show internal directories.
Click to hide internal directories.