sFilter

package
v2.0.0 Latest Latest
Warning

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

Go to latest
Published: Feb 6, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Filters

type Filters struct {
	Inter Inter
}

func New

func New(inter Inter) *Filters

func (*Filters) Float64

func (f *Filters) Float64(field string, value float64) *Filters

float64

func (*Filters) Float64_gt

func (f *Filters) Float64_gt(field string, value float64) *Filters

func (*Filters) Float64_gt_lt

func (f *Filters) Float64_gt_lt(field string, value_1, value_2 float64) *Filters

func (*Filters) Float64_gt_lte

func (f *Filters) Float64_gt_lte(field string, value_1, value_2 float64) *Filters

func (*Filters) Float64_gte

func (f *Filters) Float64_gte(field string, value float64) *Filters

func (*Filters) Float64_gte_lt

func (f *Filters) Float64_gte_lt(field string, value_1, value_2 float64) *Filters

func (*Filters) Float64_gte_lte

func (f *Filters) Float64_gte_lte(field string, value_1, value_2 float64) *Filters

func (*Filters) Float64_in

func (f *Filters) Float64_in(field string, values ...float64) *Filters

func (*Filters) Float64_lt

func (f *Filters) Float64_lt(field string, value float64) *Filters

func (*Filters) Float64_lte

func (f *Filters) Float64_lte(field string, value float64) *Filters

func (*Filters) Float64_nin

func (f *Filters) Float64_nin(field string, values ...float64) *Filters

func (*Filters) Int

func (f *Filters) Int(field string, value int) *Filters

int

func (*Filters) Int64

func (f *Filters) Int64(field string, value int64) *Filters

int64

func (*Filters) Int64_gt

func (f *Filters) Int64_gt(field string, value int64) *Filters

func (*Filters) Int64_gt_lt

func (f *Filters) Int64_gt_lt(field string, value_1, value_2 int64) *Filters

func (*Filters) Int64_gt_lte

func (f *Filters) Int64_gt_lte(field string, value_1, value_2 int64) *Filters

func (*Filters) Int64_gte

func (f *Filters) Int64_gte(field string, value int64) *Filters

func (*Filters) Int64_gte_lt

func (f *Filters) Int64_gte_lt(field string, value_1, value_2 int64) *Filters

func (*Filters) Int64_gte_lte

func (f *Filters) Int64_gte_lte(field string, value_1, value_2 int64) *Filters

func (*Filters) Int64_in

func (f *Filters) Int64_in(field string, values ...int64) *Filters

func (*Filters) Int64_lt

func (f *Filters) Int64_lt(field string, value int64) *Filters

func (*Filters) Int64_lte

func (f *Filters) Int64_lte(field string, value int64) *Filters

func (*Filters) Int64_nin

func (f *Filters) Int64_nin(field string, values ...int64) *Filters

func (*Filters) Int_gt

func (f *Filters) Int_gt(field string, value int) *Filters

func (*Filters) Int_gt_lt

func (f *Filters) Int_gt_lt(field string, value_1, value_2 int) *Filters

func (*Filters) Int_gt_lte

func (f *Filters) Int_gt_lte(field string, value_1, value_2 int) *Filters

func (*Filters) Int_gte

func (f *Filters) Int_gte(field string, value int) *Filters

func (*Filters) Int_gte_lt

func (f *Filters) Int_gte_lt(field string, value_1, value_2 int) *Filters

func (*Filters) Int_gte_lte

func (f *Filters) Int_gte_lte(field string, value_1, value_2 int) *Filters

func (*Filters) Int_in

func (f *Filters) Int_in(field string, values ...int) *Filters

func (*Filters) Int_lt

func (f *Filters) Int_lt(field string, value int) *Filters

func (*Filters) Int_lte

func (f *Filters) Int_lte(field string, value int) *Filters

func (*Filters) Int_nin

func (f *Filters) Int_nin(field string, values ...int) *Filters

func (*Filters) NotStates

func (f *Filters) NotStates(states ...string) *Filters

func (*Filters) ObjectId

func (f *Filters) ObjectId(field string, value sId.ObjectId) *Filters

ObjectId

func (*Filters) ObjectId_in

func (f *Filters) ObjectId_in(field string, values ...sId.ObjectId) *Filters

func (*Filters) Sides

func (f *Filters) Sides(sides ...tSide.Side) *Filters

func (*Filters) States

func (f *Filters) States(states ...string) *Filters

func (*Filters) String_in

func (f *Filters) String_in(field string, values ...string) *Filters

func (*Filters) String_like

func (f *Filters) String_like(field string, value string) *Filters

func (*Filters) String_nin

func (f *Filters) String_nin(field string, values ...string) *Filters

func (*Filters) Ts

func (f *Filters) Ts(ts_from, ts_to int64) *Filters

Set Ts, $gte: ts_from $lt: ts_to

func (*Filters) TsField

func (f *Filters) TsField(ts_from, ts_to int64, field string) *Filters

Field like Ts, $gte: ts_from $lt: ts_to

func (*Filters) TsIn

func (f *Filters) TsIn(tss ...int64) *Filters

type Inter

type Inter interface {
	Log(msg string)

	Append(key string, value interface{})

	In(key string, values ...interface{})
	Nin(key string, values ...interface{})

	Like(key string, value string)

	Gt(key string, value interface{})
	Gte(key string, value interface{})
	Lt(key string, value interface{})
	Lte(key string, value interface{})

	GtLt(key string, value_1, value_2 interface{})
	GtLte(key string, value_1, value_2 interface{})
	GteLt(key string, value_1, value_2 interface{})
	GteLte(key string, value_1, value_2 interface{})
}

Jump to

Keyboard shortcuts

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