Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ParseBase36 ¶
func ParsePaginator ¶
func ParsePaginator(paginator *db.ListOptions, max ...int) (int, int)
ParsePaginator parses a db.Paginator into a skip and limit
Types ¶
type Indexer ¶
type Indexer interface { // Init initializes the indexer // returns true if the index was opened/existed (with data populated), false if it was created/not-existed (with no data) Init(ctx context.Context) (bool, error) // Ping checks if the indexer is available Ping(ctx context.Context) error // Close closes the indexer Close() }
Indexer defines an basic indexer interface
Click to show internal directories.
Click to hide internal directories.