Documentation
¶
Index ¶
- Variables
- func Disconnect() error
- func GetClient(connName string) (*mongo.Client, error)
- func GetDB(connName string) (*mongo.Database, error)
- func GetDefaultDB() (*mongo.Database, error)
- func Init(configs map[string]*Config) error
- func StrID2ObjID(id string) interface{}
- func StrIDs2ObjIDs(ids []string) []interface{}
- func TimeoutCtx(timeout time.Duration) (context.Context, context.CancelFunc)
- type Config
- type Pl
- func (p *Pl) AddFields(cond interface{}) *Pl
- func (p *Pl) Bucket(cond interface{}) *Pl
- func (p *Pl) ColStats(cond interface{}) *Pl
- func (p *Pl) Count(cond interface{}) *Pl
- func (p *Pl) CurrentOp(cond interface{}) *Pl
- func (p *Pl) Extract() mongo2.Pipeline
- func (p *Pl) Facet(cond interface{}) *Pl
- func (p *Pl) GeoNear(cond interface{}) *Pl
- func (p *Pl) GraphLookup(cond interface{}) *Pl
- func (p *Pl) Group(cond interface{}) *Pl
- func (p *Pl) IndexStats(cond interface{}) *Pl
- func (p *Pl) Limit(cond interface{}) *Pl
- func (p *Pl) ListLocalSessions(cond interface{}) *Pl
- func (p *Pl) ListSessions(cond interface{}) *Pl
- func (p *Pl) Lookup(cond interface{}) *Pl
- func (p *Pl) Match(cond interface{}) *Pl
- func (p *Pl) New() *Pl
- func (p *Pl) Out(cond interface{}) *Pl
- func (p *Pl) Paginate(page, pageSize int) *Pl
- func (p *Pl) Project(cond interface{}) *Pl
- func (p *Pl) Redact(cond interface{}) *Pl
- func (p *Pl) ReplaceRoot(cond interface{}) *Pl
- func (p *Pl) Sample(cond interface{}) *Pl
- func (p *Pl) Skip(cond interface{}) *Pl
- func (p *Pl) Sort(cond interface{}) *Pl
- func (p *Pl) SortByCount(cond interface{}) *Pl
- func (p *Pl) Unwind(cond interface{}) *Pl
Constants ¶
This section is empty.
Variables ¶
View Source
var Conf map[string]*Config
View Source
var Pipeline = new(Pl)
Functions ¶
func Disconnect ¶
func Disconnect() error
func GetDefaultDB ¶
func StrID2ObjID ¶
func StrID2ObjID(id string) interface{}
func StrIDs2ObjIDs ¶
func StrIDs2ObjIDs(ids []string) []interface{}
func TimeoutCtx ¶
Types ¶
type Pl ¶
type Pl struct {
// contains filtered or unexported fields
}
func (*Pl) GraphLookup ¶
func (*Pl) IndexStats ¶
func (*Pl) ListLocalSessions ¶
func (*Pl) ListSessions ¶
func (*Pl) ReplaceRoot ¶
func (*Pl) SortByCount ¶
Click to show internal directories.
Click to hide internal directories.