Documentation
¶
Overview ¶
Package redis implements the storage interface with Redis
Index ¶
- type Client
- func (cl Client) GetExperimentResult(namespace, experiment string) (*base.ExperimentResult, error)
- func (cl Client) GetMetrics(applicationName string, version int, signature string) (*storage.VersionMetrics, error)
- func (cl Client) SetExperimentResult(namespace, experiment string, data *base.ExperimentResult) error
- func (cl Client) SetMetric(applicationName string, version int, ...) error
- func (cl Client) SetUser(applicationName string, version int, signature, user string) error
- type ClientConfig
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client is a client for Redis
func GetClient ¶
func GetClient(config ClientConfig) (*Client, error)
GetClient returns a Redis client
func (Client) GetExperimentResult ¶
func (cl Client) GetExperimentResult(namespace, experiment string) (*base.ExperimentResult, error)
GetExperimentResult returns an experiment result. See storage.Interface
func (Client) GetMetrics ¶
func (cl Client) GetMetrics(applicationName string, version int, signature string) (*storage.VersionMetrics, error)
GetMetrics returns all metrics for an app/version. See storage.Inferface
func (Client) SetExperimentResult ¶
func (cl Client) SetExperimentResult(namespace, experiment string, data *base.ExperimentResult) error
SetExperimentResult records an experiment result. See storage.Inferface
Click to show internal directories.
Click to hide internal directories.