internal

package
v1.21.11 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 16, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Base36

func Base36(i int64) string

func ParseBase36

func ParseBase36(s string) (int64, error)

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

func NewDummyIndexer

func NewDummyIndexer() Indexer

NewDummyIndexer returns a dummy indexer

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL