query

package
v1.6.1 Latest Latest
Warning

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

Go to latest
Published: Mar 27, 2025 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Option

type Option func(*Options)

func FromProtoOptions

func FromProtoOptions(protoOptions *commonpb.QueryOptions) []Option

func WithAscending

func WithAscending() Option

func WithDescending

func WithDescending() Option

func WithLimit

func WithLimit(limit int) Option

func WithOrder

func WithOrder(order commonpb.QueryOptions_Order) Option

func WithToken

func WithToken(token *commonpb.PagingToken) Option

type Options

type Options struct {
	Limit int
	Token *commonpb.PagingToken
	Order commonpb.QueryOptions_Order
}

func ApplyOptions

func ApplyOptions(options ...Option) Options

func DefaultOptions

func DefaultOptions() Options

Jump to

Keyboard shortcuts

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