category

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: 7 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) FilterByLocation

func (self *Model) FilterByLocation(location geometry.Point, maxDistance, minDistance float64) bson.D

func (*Model) FilterByParentID

func (self *Model) FilterByParentID(parentID primitive.ObjectID) bson.D

func (*Model) FilterByTag

func (self *Model) FilterByTag(tag string) bson.D

func (*Model) FilterByType

func (self *Model) FilterByType(typ int) bson.D

func (*Model) FilterByVisibility

func (self *Model) FilterByVisibility(visibility int) bson.D

func (*Model) FilterByVisibilityOrAll

func (self *Model) FilterByVisibilityOrAll(visibility int) bson.D

func (*Model) FilterNormalCategory

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

Jump to

Keyboard shortcuts

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