service

package
v6.0.2 Latest Latest
Warning

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

Go to latest
Published: Dec 2, 2024 License: Apache-2.0 Imports: 6 Imported by: 7

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AuthClient

type AuthClient interface {
	Authenticate() (*dtos.Token, error)
}

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

type EventsRecorder interface {
	Record(events []dtos.EventDTO, metadata dtos.Metadata) error
}

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

type RequestParams interface {
	Apply(request *http.Request) error
}

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

Directories

Path Synopsis
api
sse

Jump to

Keyboard shortcuts

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