filters

package
v0.0.0-...-ebe5785 Latest Latest
Warning

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

Go to latest
Published: May 27, 2024 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 Filter

type Filter interface {
	Apply(values []string) (string, []interface{}, error)
}

type NumFieldFilter

type NumFieldFilter struct {
	// contains filtered or unexported fields
}

func NumField

func NumField(field string) *NumFieldFilter

func (*NumFieldFilter) Apply

func (f *NumFieldFilter) Apply(values []string) (queryResult string, args []interface{}, rErr error)

type SortFilter

type SortFilter struct {
	// contains filtered or unexported fields
}

func Sort

func Sort(fields ...string) *SortFilter

func (*SortFilter) Apply

func (f *SortFilter) Apply(values []string) (string, error)

type Sorter

type Sorter interface {
	Apply(values []string) (string, error)
}

type TextFieldFilter

type TextFieldFilter struct {
	// contains filtered or unexported fields
}

func TextField

func TextField(field string) *TextFieldFilter

func (*TextFieldFilter) Apply

func (f *TextFieldFilter) Apply(values []string) (queryResult string, args []interface{}, rErr error)

Jump to

Keyboard shortcuts

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