Documentation ¶
Index ¶
- type AuthClient
- type AuthRequestParams
- type EventsRecorder
- type FlagRequestParams
- func (s *FlagRequestParams) Apply(request *http.Request) error
- func (s *FlagRequestParams) ChangeNumber() int64
- func (s *FlagRequestParams) WithCacheControl(cacheControl bool) *FlagRequestParams
- func (s *FlagRequestParams) WithChangeNumber(changeNumber int64) *FlagRequestParams
- func (s *FlagRequestParams) WithFlagSetsFilter(flagSetsFilter string) *FlagRequestParams
- func (s *FlagRequestParams) WithSpecVersion(specVersion *string) *FlagRequestParams
- func (s *FlagRequestParams) WithTill(till int64) *FlagRequestParams
- type ImpressionsRecorder
- type LargeSegmentFetcher
- type RequestParams
- type SegmentFetcher
- type SegmentRequestParams
- func (s *SegmentRequestParams) Apply(request *http.Request) error
- func (s *SegmentRequestParams) ChangeNumber() int64
- func (s *SegmentRequestParams) WithCacheControl(cacheControl bool) *SegmentRequestParams
- func (s *SegmentRequestParams) WithChangeNumber(changeNumber int64) *SegmentRequestParams
- func (s *SegmentRequestParams) WithTill(till int64) *SegmentRequestParams
- type SplitFetcher
- type TelemetryRecorder
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AuthClient ¶
AuthClient inteface to be implemneted by AuthClient
type AuthRequestParams ¶
type AuthRequestParams struct {
// contains filtered or unexported fields
}
AuthRequestParams struct for auth request parameters
func MakeAuthRequestParams ¶
func MakeAuthRequestParams(specVersion *string) *AuthRequestParams
MakeAuthRequestParams returns a new instance of AuthRequestParams
func (*AuthRequestParams) Apply ¶
func (s *AuthRequestParams) Apply(request *http.Request) error
WithSpecVersion sets the spec version
func (*AuthRequestParams) WithCacheControl ¶
func (s *AuthRequestParams) WithCacheControl(cacheControl bool) *AuthRequestParams
WithCacheControl sets the cache control header
type EventsRecorder ¶
EventsRecorder interface to post events
type FlagRequestParams ¶
type FlagRequestParams struct {
// contains filtered or unexported fields
}
FlagRequestParams struct for flag request parameters
func MakeFlagRequestParams ¶
func MakeFlagRequestParams() *FlagRequestParams
MakeFlagRequestParams returns a new instance of FlagRequestParams
func (*FlagRequestParams) Apply ¶
func (s *FlagRequestParams) Apply(request *http.Request) error
Apply applies the request parameters
func (*FlagRequestParams) ChangeNumber ¶
func (s *FlagRequestParams) ChangeNumber() int64
ChangeNumber returns the change number
func (*FlagRequestParams) WithCacheControl ¶
func (s *FlagRequestParams) WithCacheControl(cacheControl bool) *FlagRequestParams
WithCacheControl sets the cache control header
func (*FlagRequestParams) WithChangeNumber ¶
func (s *FlagRequestParams) WithChangeNumber(changeNumber int64) *FlagRequestParams
WithChangeNumber sets the change number
func (*FlagRequestParams) WithFlagSetsFilter ¶
func (s *FlagRequestParams) WithFlagSetsFilter(flagSetsFilter string) *FlagRequestParams
WithFlagSetsFilter sets the flag sets filter
func (*FlagRequestParams) WithSpecVersion ¶
func (s *FlagRequestParams) WithSpecVersion(specVersion *string) *FlagRequestParams
WithSpecVersion sets the spec version
func (*FlagRequestParams) WithTill ¶
func (s *FlagRequestParams) WithTill(till int64) *FlagRequestParams
WithTill sets the till
type ImpressionsRecorder ¶
type ImpressionsRecorder interface { Record(impressions []dtos.ImpressionsDTO, metadata dtos.Metadata, extraHeaders map[string]string) error RecordImpressionsCount(pf dtos.ImpressionsCountDTO, metadata dtos.Metadata) error }
ImpressionsRecorder interface to be implemented by Impressions loggers
type LargeSegmentFetcher ¶ added in v6.0.2
type LargeSegmentFetcher interface { Fetch(name string, fetchOptions *SegmentRequestParams) (*dtos.LargeSegmentRFDResponseDTO, error) DownloadFile(name string, rfdResponseDTO *dtos.LargeSegmentRFDResponseDTO) (*dtos.LargeSegment, error) }
type RequestParams ¶
RequestParams interface for request parameters
type SegmentFetcher ¶
type SegmentFetcher interface {
Fetch(name string, fetchOptions *SegmentRequestParams) (*dtos.SegmentChangesDTO, error)
}
SegmentFetcher interface to be implemented by Split Fetchers
type SegmentRequestParams ¶
type SegmentRequestParams struct {
// contains filtered or unexported fields
}
SegmentRequestParams struct for segment request parameters
func MakeSegmentRequestParams ¶
func MakeSegmentRequestParams() *SegmentRequestParams
MakeSegmentRequestParams returns a new instance of SegmentRequestParams
func (*SegmentRequestParams) Apply ¶
func (s *SegmentRequestParams) Apply(request *http.Request) error
Apply applies the request parameters
func (*SegmentRequestParams) ChangeNumber ¶
func (s *SegmentRequestParams) ChangeNumber() int64
ChangeNumber returns the change number
func (*SegmentRequestParams) WithCacheControl ¶
func (s *SegmentRequestParams) WithCacheControl(cacheControl bool) *SegmentRequestParams
WithCacheControl sets the cache control header
func (*SegmentRequestParams) WithChangeNumber ¶
func (s *SegmentRequestParams) WithChangeNumber(changeNumber int64) *SegmentRequestParams
WithChangeNumber sets the change number
func (*SegmentRequestParams) WithTill ¶
func (s *SegmentRequestParams) WithTill(till int64) *SegmentRequestParams
WithTill sets the till
type SplitFetcher ¶
type SplitFetcher interface {
Fetch(fetchOptions *FlagRequestParams) (*dtos.SplitChangesDTO, error)
}
SplitFetcher interface to be implemented by Split Fetchers
type TelemetryRecorder ¶
type TelemetryRecorder interface { RecordConfig(config dtos.Config, metadata dtos.Metadata) error RecordStats(stats dtos.Stats, metadata dtos.Metadata) error RecordUniqueKeys(uniques dtos.Uniques, metadata dtos.Metadata) error }
TelemetryRecorder interface to be implemented by Telemetry loggers