http

package
v0.0.0-...-b44ee91 Latest Latest
Warning

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

Go to latest
Published: Mar 19, 2021 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HttpClient

type HttpClient struct {
	http.Client
	// contains filtered or unexported fields
}

func NewHttpClient

func NewHttpClient(address, applicationName, login, password string) *HttpClient

func (*HttpClient) CreateBucket

func (c *HttpClient) CreateBucket(ctx context.Context, bucket *experiments.Bucket) (*experiments.Bucket, error)

func (*HttpClient) CreateExperiment

func (c *HttpClient) CreateExperiment(ctx context.Context, experiment *experiments.Experiment) (*experiments.Experiment, error)

func (*HttpClient) GenerateAssignment

func (c *HttpClient) GenerateAssignment(ctx context.Context, experimentLabel string, userID string) (*assignments.Assignment, error)

func (*HttpClient) GetExperimentBuckets

func (c *HttpClient) GetExperimentBuckets(ctx context.Context, experimentID string) ([]*experiments.Bucket, error)

func (*HttpClient) GetExperimentByID

func (c *HttpClient) GetExperimentByID(ctx context.Context, experimentID string) (*experiments.Experiment, error)

func (*HttpClient) GetExperiments

func (c *HttpClient) GetExperiments(ctx context.Context) ([]*experiments.Experiment, error)

func (*HttpClient) UpdateExperiment

func (c *HttpClient) UpdateExperiment(ctx context.Context, id string, experiment *experiments.Experiment) (*experiments.Experiment, error)

func (*HttpClient) UpdateExperimentState

func (c *HttpClient) UpdateExperimentState(ctx context.Context, id string, state experiments.ExperimentState) (*experiments.Experiment, error)

type UnexpectedResponse

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

func (*UnexpectedResponse) Error

func (e *UnexpectedResponse) Error() string

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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