Documentation ¶
Index ¶
- Variables
- type Option
- func WithBatchSize(size int) Option
- func WithCheckInterval(interval time.Duration) Option
- func WithFlushInterval(i time.Duration) Option
- func WithFlushSize(s int) Option
- func WithFlushTimeout(timeout time.Duration) Option
- func WithLogger(l *zap.Logger) Option
- func WithMaxMPS(mps int) Option
- func WithMetrics(r metrics.Registerer) Option
- func WithNumWorkers(n int) Option
- type PersisterDWH
- type Writer
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrUnexpectedMessageType = errors.New("eventpersister: unexpected message type") ErrAutoOpsRulesNotFound = errors.New("eventpersister: auto ops rules not found") ErrEvaluationsAreEmpty = errors.New("eventpersister: evaluations are empty") ErrEvaluationEventIssuedAfterExperimentEnded = errors.New("eventpersister: evaluation event issued after experiment ended") //nolint:lll ErrExperimentNotFound = errors.New("eventpersister: experiment not found") ErrFailedToEvaluateUser = errors.New("eventpersister: failed to evaluate user") ErrNoAutoOpsRules = errors.New("eventpersister: no auto ops rules") ErrNothingToLink = errors.New("eventpersister: nothing to link") ErrInvalidEventTimestamp = errors.New("eventpersister: invalid event timestamp") )
Functions ¶
This section is empty.
Types ¶
type Option ¶
type Option func(*options)
func WithBatchSize ¶
func WithCheckInterval ¶ added in v0.4.0
func WithFlushInterval ¶
func WithFlushSize ¶
func WithFlushTimeout ¶
func WithLogger ¶
func WithMaxMPS ¶
func WithMetrics ¶
func WithMetrics(r metrics.Registerer) Option
func WithNumWorkers ¶
type PersisterDWH ¶
type PersisterDWH struct {
// contains filtered or unexported fields
}
func NewPersisterDWH ¶
func (*PersisterDWH) IsRunning ¶ added in v0.4.0
func (p *PersisterDWH) IsRunning() bool
func (*PersisterDWH) Run ¶
func (p *PersisterDWH) Run() error
func (*PersisterDWH) Stop ¶
func (p *PersisterDWH) Stop()
type Writer ¶
func NewEvalEventWriter ¶
Click to show internal directories.
Click to hide internal directories.