Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
NowProvider = time.Now().UnixMilli
)
Functions ¶
func FieldTypeForValue ¶
func FieldTypeForValue(value interface{}) int32
Types ¶
type Aggregator ¶
type Aggregator interface { Record(data interface{}) GetData() *prefabProto.TelemetryEvent Clear() Lock() Unlock() }
func NewContextAggregators ¶
func NewContextAggregators(opts options.Options) []Aggregator
type ContextShapeAggregator ¶
type ContextShapeAggregator struct {
// contains filtered or unexported fields
}
func NewContextShapeAggregator ¶
func NewContextShapeAggregator() *ContextShapeAggregator
func (*ContextShapeAggregator) Clear ¶
func (eca *ContextShapeAggregator) Clear()
func (*ContextShapeAggregator) GetData ¶
func (eca *ContextShapeAggregator) GetData() *prefabProto.TelemetryEvent
func (*ContextShapeAggregator) Lock ¶
func (eca *ContextShapeAggregator) Lock()
func (*ContextShapeAggregator) Record ¶
func (eca *ContextShapeAggregator) Record(ctxSet interface{})
func (*ContextShapeAggregator) Unlock ¶
func (eca *ContextShapeAggregator) Unlock()
type EvaluationSummaryAggregator ¶
type EvaluationSummaryAggregator struct {
// contains filtered or unexported fields
}
func NewEvaluationSummaryAggregator ¶
func NewEvaluationSummaryAggregator() *EvaluationSummaryAggregator
func (*EvaluationSummaryAggregator) Clear ¶
func (esa *EvaluationSummaryAggregator) Clear()
func (*EvaluationSummaryAggregator) GetData ¶
func (esa *EvaluationSummaryAggregator) GetData() *prefabProto.TelemetryEvent
func (*EvaluationSummaryAggregator) Lock ¶
func (esa *EvaluationSummaryAggregator) Lock()
func (*EvaluationSummaryAggregator) Record ¶
func (esa *EvaluationSummaryAggregator) Record(data interface{})
func (*EvaluationSummaryAggregator) Unlock ¶
func (esa *EvaluationSummaryAggregator) Unlock()
type ExampleContextAggregator ¶
type ExampleContextAggregator struct { Data map[string]*prefabProto.ExampleContext // contains filtered or unexported fields }
func NewExampleContextAggregator ¶
func NewExampleContextAggregator() *ExampleContextAggregator
func (*ExampleContextAggregator) Clear ¶
func (eca *ExampleContextAggregator) Clear()
func (*ExampleContextAggregator) GetData ¶
func (eca *ExampleContextAggregator) GetData() *prefabProto.TelemetryEvent
func (*ExampleContextAggregator) Lock ¶
func (eca *ExampleContextAggregator) Lock()
func (*ExampleContextAggregator) Record ¶
func (eca *ExampleContextAggregator) Record(ctxSet interface{})
func (*ExampleContextAggregator) Unlock ¶
func (eca *ExampleContextAggregator) Unlock()
type Payload ¶
type Payload = prefabProto.TelemetryEvents
type Submitter ¶
type Submitter struct {
// contains filtered or unexported fields
}
func NewTelemetrySubmitter ¶
func (*Submitter) RecordContext ¶
func (ts *Submitter) RecordContext(data *contexts.ContextSet)
func (*Submitter) RecordEvaluation ¶
func (ts *Submitter) RecordEvaluation(data internal.ConfigMatch)
func (*Submitter) SetupQueueConsumer ¶
func (ts *Submitter) SetupQueueConsumer()
func (*Submitter) StartPeriodicSubmission ¶
Click to show internal directories.
Click to hide internal directories.