Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type APIClient ¶
type APIClient struct {
// contains filtered or unexported fields
}
APIClient represents the API client informations
func NewAPIClient ¶
func NewAPIClient(envID string, params ...func(*decisionapi.APIClient)) (*APIClient, error)
NewAPIClient creates a decision API client with API options
func (APIClient) GetModifications ¶
func (r APIClient) GetModifications(visitorID string, context map[string]interface{}) (*model.APIClientResponse, error)
GetModifications gets modifications from Decision API
type APIClientMock ¶
type APIClientMock struct {
// contains filtered or unexported fields
}
APIClientMock represents the API client mock informations
func NewAPIClientMock ¶
func NewAPIClientMock(envID string, responseMock *model.APIClientResponse, statusCode int) *APIClientMock
NewAPIClientMock creates a fake api client that returns a specific response
func (APIClientMock) GetModifications ¶
func (r APIClientMock) GetModifications(visitorID string, context map[string]interface{}) (*model.APIClientResponse, error)
GetModifications gets modifications from Decision API
type ClientInterface ¶
type ClientInterface interface {
GetModifications(visitorID string, context map[string]interface{}) (*model.APIClientResponse, error)
}
ClientInterface is the modification engine interface
Click to show internal directories.
Click to hide internal directories.