decision

package
Version: v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jul 17, 2020 License: Apache-2.0 Imports: 5 Imported by: 0

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

Jump to

Keyboard shortcuts

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