Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ContextKey ¶
type ContextKey string
ContextKey is a type that represents a key in a Golang context
const ( // ExperimentEngineKey represents the key for the experiment engine name, stored in the context ExperimentEngineKey ContextKey = "experimentEngineKey" )
type ExperimentRunner ¶
type ExperimentRunner interface { GetTreatmentForRequest( header http.Header, payload []byte, options GetTreatmentOptions, ) (*Treatment, error) }
ExperimentRunner is the generic interface for generating experiment configs for a given request
func NewInterceptRunner ¶
func NewInterceptRunner( name string, runner ExperimentRunner, interceptors ...Interceptor, ) ExperimentRunner
type GetTreatmentOptions ¶
type GetTreatmentOptions struct {
TuringRequestID string
}
Click to show internal directories.
Click to hide internal directories.