Documentation ¶
Index ¶
- type Client
- func (c *Client) GetDatafile(environmentName string, projectID int) ([]byte, error)
- func (c *Client) GetEnvironmentByProjectID(name string, projectID int) (api.Environment, error)
- func (c *Client) GetEnvironmentByProjectName(name, projectName string) (api.Environment, error)
- func (c *Client) GetEnvironmentsByProjectID(projectID int) ([]api.Environment, error)
- func (c *Client) GetEnvironmentsByProjectName(projectName string) ([]api.Environment, error)
- func (c *Client) GetProjects() ([]api.Project, error)
- func (c *Client) ReportEvents(events []byte) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
Client mocks out the OptimizelyAPI interface for use in testing
func (*Client) GetDatafile ¶
func (*Client) GetEnvironmentByProjectID ¶
func (*Client) GetEnvironmentByProjectName ¶
func (c *Client) GetEnvironmentByProjectName(name, projectName string) (api.Environment, error)
func (*Client) GetEnvironmentsByProjectID ¶
func (c *Client) GetEnvironmentsByProjectID(projectID int) ([]api.Environment, error)
func (*Client) GetEnvironmentsByProjectName ¶
func (c *Client) GetEnvironmentsByProjectName(projectName string) ([]api.Environment, error)
func (*Client) ReportEvents ¶
Click to show internal directories.
Click to hide internal directories.