Versions in this module Expand all Collapse all v0 v0.2.0 Feb 18, 2021 Changes in this version + const CollectionCounter + const CollectionKV + const CollectionKVRevision + const CollectionLabel + const CollectionPollingDetail + const CollectionView + const DBName + const DefaultTimeout + const DefaultValueType + const MsgDBExists + const MsgDuplicate + var ErrGetPipeline = errors.New("can not get criteria") + var ErrIDIsNil = errors.New("id is empty") + var ErrKVAlreadyExists = errors.New("kv already exists") + var ErrKeyIsNil = errors.New("key must not be empty") + var ErrKeyMustNotEmpty = errors.New("must supply key if you want to get exact one result") + var ErrLabelNotExists = errors.New("labels does not exits") + var ErrMissingDomain = errors.New("domain info missing, illegal access") + var ErrMissingProject = errors.New("project info missing, illegal access") + var ErrRootCAMissing = errors.New("rootCAFile is empty in config file") + var ErrTooMany = errors.New("key with labels should be only one") + var ErrViewCreation = errors.New("can not create view") + var ErrViewDelete = errors.New("can not delete view") + var ErrViewFinding = errors.New("view search error") + var ErrViewNotExist = errors.New("view not exists") + var ErrViewUpdate = errors.New("can not update view") + var Timeout time.Duration + func CreateView(ctx context.Context, view, source string, pipeline mongo.Pipeline) error + func DropView(ctx context.Context, view string) error + func EnsureDB() + func GetDB() *mongo.Database + func Init() error + func OpenSession() *mgo.Session + type CollectionInfo struct + Options Options + func GetColInfo(ctx context.Context, name string) (*CollectionInfo, error) + type Options struct + Pipeline []map[string]map[string]string