service

package
v5.1.1 Latest Latest
Warning

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

Go to latest
Published: Dec 21, 2023 License: Apache-2.0 Imports: 2 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BuildFetch

func BuildFetch(changeNumber int64, fetchOptions *FetchOptions) (map[string]string, map[string]string)

Types

type AuthClient

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

AuthClient inteface to be implemneted by AuthClient

type EventsRecorder

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

EventsRecorder interface to post events

type FetchOptions

type FetchOptions struct {
	CacheControlHeaders bool
	ChangeNumber        *int64
	FlagSetsFilter      string
}

func NewFetchOptions

func NewFetchOptions(cacheControlHeaders bool, changeNumber *int64) FetchOptions

func (*FetchOptions) SetFlagSetsFilter added in v5.1.0

func (f *FetchOptions) SetFlagSetsFilter(flagSetsFilter string)

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 SegmentFetcher

type SegmentFetcher interface {
	Fetch(name string, changeNumber int64, fetchOptions *FetchOptions) (*dtos.SegmentChangesDTO, error)
}

SegmentFetcher interface to be implemented by Split Fetchers

type SplitFetcher

type SplitFetcher interface {
	Fetch(changeNumber int64, fetchOptions *FetchOptions) (*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