store

package
v0.0.0-...-c4c2632 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddMapData

func AddMapData(coll string, data map[string]interface{}) (added map[string]interface{})

AddMapData _

func Find

func Find(coll string, where map[string]interface{}) (data []interface{})

Find _

func FindWithSort

func FindWithSort(coll string, where map[string]interface{}, sortOpts ...bson.E) (data []interface{})

FindWithSort _

func Init

func Init(conf MongoConf)

Init _

Types

type MongoConf

type MongoConf struct {
	Host     string `yaml:"host"`
	Port     int    `yaml:"port"`
	Username string `yaml:"username"`
	Password string `yaml:"password"`
	Database string `yaml:"database"`
}

MongoConf _

Jump to

Keyboard shortcuts

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