options

package
v0.0.0-...-b6e1ce4 Latest Latest
Warning

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

Go to latest
Published: Apr 11, 2023 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ListOptions

type ListOptions struct {
	FieldMap map[string]interface{}
	Fields   []interface{}
	OrderBy  string
	Limit    int
	Page     int
}

func NewListOptions

func NewListOptions(page, limit int) *ListOptions

func (*ListOptions) Asc

func (l *ListOptions) Asc(field ...string) *ListOptions

func (*ListOptions) Desc

func (l *ListOptions) Desc(field ...string) *ListOptions

func (*ListOptions) WithFields

func (l *ListOptions) WithFields(fields []interface{}) *ListOptions

type SearchOptions

type SearchOptions struct {
	Fields map[string]interface{}
}

func NewSearchOptions

func NewSearchOptions(fields map[string]interface{}) SearchOptions

Jump to

Keyboard shortcuts

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