Documentation ¶
Index ¶
- type Ingester
- func (i *Ingester) Activate(ingestionURL string, config *core.SDKConfig)
- func (i *Ingester) Publish(entity *core.Entity)
- func (i *Ingester) PublishExposure(exposure *core.Exposure, isNewFlag bool)
- func (i *Ingester) SendEmptyIngestion()
- func (i *Ingester) SetEntity(entity *core.Entity)
- func (i *Ingester) Shutdown(timeout time.Duration) bool
- func (i *Ingester) Track(event *core.Event)
- type IngestionDataRequest
- type RetryPolicyCallback
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Ingester ¶
type Ingester struct {
// contains filtered or unexported fields
}
An Ingester is a mechanism to summarize and send data to server with retry policy
func NewIngester ¶
NewIngester creates new instance of ingester
func (*Ingester) Activate ¶ added in v3.0.8
Activate activates ingester strategy. Must be the first method called after NewIngester
func (*Ingester) PublishExposure ¶
PublishExposure adds new exposure to the ingester
func (*Ingester) SendEmptyIngestion ¶ added in v3.0.10
func (i *Ingester) SendEmptyIngestion()
SendEmptyIngestion sends empty ingestion to inform a server about sdk usage
type IngestionDataRequest ¶
type IngestionDataRequest struct { ID string `json:"id"` Entities []*core.Entity `json:"entities"` Exposures []*core.Exposure `json:"exposures"` // the output of every Flag Function call Events []*core.Event `json:"events"` // user generated event SDKInfo *core.SDKInfo `json:"sdkInfo"` // Dictionary holding info about the Flagger DetectedFlags []string `json:"detectedFlags"` }
An IngestionDataRequest is a data object for the ingestion request
type RetryPolicyCallback ¶
type RetryPolicyCallback func(err error)
RetryPolicyCallback is called when retry policy finishes the processing of the ingestion data httpRequest There are 2 possible scenarios: 1) ingestion is successfully sent to the server 2) new ingestion arrive, so the current ingestion is shift from the queue(not enough memory)