mongo

package
v0.0.0-...-f5f25a8 Latest Latest
Warning

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

Go to latest
Published: Aug 2, 2016 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func WithMongoStorage

func WithMongoStorage(url, db, collection string) func(*choices.ElwinConfig) error

Types

type Mongo

type Mongo struct {
	// contains filtered or unexported fields
}

func (*Mongo) LoadExampleData

func (m *Mongo) LoadExampleData()

func (*Mongo) Read

func (m *Mongo) Read() []choices.Namespace

func (*Mongo) Update

func (m *Mongo) Update() error

type MongoExperiment

type MongoExperiment struct {
	Name     string
	Segments [16]byte
	Params   []MongoParam
}

type MongoExperimentInput

type MongoExperimentInput struct {
	Name     string
	Segments [16]byte
	Params   []MongoParamInput
}

type MongoNamespace

type MongoNamespace struct {
	Name        string
	Segments    [16]byte
	TeamID      []string
	Experiments []MongoExperiment
}

type MongoNamespaceInput

type MongoNamespaceInput struct {
	Name        string
	Segments    [16]byte
	TeamID      []string
	Experiments []MongoExperimentInput
}

type MongoParam

type MongoParam struct {
	Name  string
	Type  choices.ValueType
	Value bson.Raw
}

type MongoParamInput

type MongoParamInput struct {
	Name  string
	Type  choices.ValueType
	Value interface{}
}

Jump to

Keyboard shortcuts

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