dictionary

package
v0.0.0-...-2f69930 Latest Latest
Warning

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

Go to latest
Published: Jan 20, 2023 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Model

type Model struct {
	*database.Database `json:"-" bson:"-" map:"-"`
}

func NewModel

func NewModel(mgo mongodb.Mongoer) *Model

func (*Model) FilterByEnable

func (self *Model) FilterByEnable() bson.D

func (*Model) FilterByKey

func (self *Model) FilterByKey(key string) bson.D

func (*Model) FindMapLable

func (self *Model) FindMapLable(key string) map[string]string

func (*Model) FindMapLableValue

func (self *Model) FindMapLableValue(key string) help.M

func (*Model) FindMapValue

func (self *Model) FindMapValue(key string) map[string]int

func (*Model) FindSliceLable

func (self *Model) FindSliceLable(key string) []string

func (*Model) FindSliceLableValue

func (self *Model) FindSliceLableValue(key string) []help.M

func (*Model) FindSliceValue

func (self *Model) FindSliceValue(key string) []int

func (*Model) FindValues

func (self *Model) FindValues(filter bson.D) []model.DictionaryValue

func (*Model) Lookup

func (self *Model) Lookup(key, structrue, want string) interface{}

Jump to

Keyboard shortcuts

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