Versions in this module Expand all Collapse all v0 v0.1.0 Sep 5, 2019 Changes in this version + func CreateOrUpdate(ctx context.Context, domain string, kv *model.KVDoc, project string) (*model.KVDoc, error) + func Delete(kvID string, labelID string, domain string, project string) error + func DeleteKV(ctx context.Context, hexID primitive.ObjectID, project string) error + func FindKV(ctx context.Context, domain string, project string, options ...FindOption) ([]*model.KVResponse, error) + func FindKVByLabelID(ctx context.Context, domain, labelID, key string, project string) ([]*model.KVDoc, error) + func KVExist(ctx context.Context, domain, key string, project string, options ...FindOption) (primitive.ObjectID, error) + type FindOption func(*FindOptions) + func WithDepth(d int) FindOption + func WithExactLabels() FindOption + func WithKey(key string) FindOption + func WithLabelID(label string) FindOption + func WithLabels(labels map[string]string) FindOption + func WithOutLabelField() FindOption + func WithTimeout(d time.Duration) FindOption + type FindOptions struct + ClearLabel bool + Depth int + ExactLabels bool + Key string + LabelID string + Labels map[string]string + Timeout time.Duration + type MongodbService struct