Documentation ¶
Index ¶
- func GetDataRetentionExpiredTime(duration string) (time.Time, error)
- type RetentionController
- type RetentionControllerImpl
- type RetentionControllerOpt
- func WithAlerter(a hatcheterrors.Alerter) RetentionControllerOpt
- func WithDataDecoderValidator(dv datautils.DataDecoderValidator) RetentionControllerOpt
- func WithDataRetention(b bool) RetentionControllerOpt
- func WithLogger(l *zerolog.Logger) RetentionControllerOpt
- func WithPartition(p *partition.Partition) RetentionControllerOpt
- func WithRepository(r repository.EngineRepository) RetentionControllerOpt
- func WithTenantAlerter(ta *alerting.TenantAlertManager) RetentionControllerOpt
- func WithWorkerRetention(b bool) RetentionControllerOpt
- type RetentionControllerOpts
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type RetentionController ¶
type RetentionControllerImpl ¶
type RetentionControllerImpl struct {
// contains filtered or unexported fields
}
func New ¶
func New(fs ...RetentionControllerOpt) (*RetentionControllerImpl, error)
func (*RetentionControllerImpl) ForTenants ¶
func (*RetentionControllerImpl) Start ¶
func (rc *RetentionControllerImpl) Start() (func() error, error)
type RetentionControllerOpt ¶
type RetentionControllerOpt func(*RetentionControllerOpts)
func WithAlerter ¶
func WithAlerter(a hatcheterrors.Alerter) RetentionControllerOpt
func WithDataDecoderValidator ¶
func WithDataDecoderValidator(dv datautils.DataDecoderValidator) RetentionControllerOpt
func WithDataRetention ¶ added in v0.47.1
func WithDataRetention(b bool) RetentionControllerOpt
func WithLogger ¶
func WithLogger(l *zerolog.Logger) RetentionControllerOpt
func WithPartition ¶ added in v0.43.1
func WithPartition(p *partition.Partition) RetentionControllerOpt
func WithRepository ¶
func WithRepository(r repository.EngineRepository) RetentionControllerOpt
func WithTenantAlerter ¶
func WithTenantAlerter(ta *alerting.TenantAlertManager) RetentionControllerOpt
func WithWorkerRetention ¶ added in v0.47.1
func WithWorkerRetention(b bool) RetentionControllerOpt
type RetentionControllerOpts ¶
type RetentionControllerOpts struct {
// contains filtered or unexported fields
}
Click to show internal directories.
Click to hide internal directories.