experiment

package
v0.0.0-...-dda1418 Latest Latest
Warning

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

Go to latest
Published: Apr 13, 2016 License: GPL-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Alternative

type Alternative struct {
	Name   string `json:"name"`
	Weight int    `json:"weight"`
}

type Experiment

type Experiment struct {
	Name         string        `json:"name"`
	Alternatives []Alternative `json:"alternatives"`
	// contains filtered or unexported fields
}

func NewExperiment

func NewExperiment(name string, groups map[string]string, alternatives ...Alternative) *Experiment

func (*Experiment) GetAlternative

func (exp *Experiment) GetAlternative(uid string) string

func (*Experiment) SetupGroups

func (exp *Experiment) SetupGroups(groups map[string][]string) error

func (*Experiment) SetupRing

func (exp *Experiment) SetupRing()

Jump to

Keyboard shortcuts

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