Documentation ¶
Index ¶
- type BaseOperation
- type ErrorHandler
- type LimitedRunner
- func (r *LimitedRunner) AddOperation(e Operation) error
- func (r *LimitedRunner) IsRunning() bool
- func (r *LimitedRunner) RemoveOperation(e Operation) error
- func (r *LimitedRunner) RemovePolicyById(id uuid.UUID) (Operation, error)
- func (r *LimitedRunner) Start() error
- func (r *LimitedRunner) Stop() error
- type Operation
- type Runner
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BaseOperation ¶
func NewBaseOperation ¶
func NewBaseOperation(name string, freq time.Duration) *BaseOperation
func (*BaseOperation) GetFrequency ¶
func (e *BaseOperation) GetFrequency() time.Duration
func (*BaseOperation) GetId ¶
func (e *BaseOperation) GetId() uuid.UUID
func (*BaseOperation) GetName ¶
func (e *BaseOperation) GetName() string
func (*BaseOperation) SetFrequency ¶
func (e *BaseOperation) SetFrequency(f time.Duration) error
type ErrorHandler ¶
type LimitedRunner ¶
type LimitedRunner struct {
// contains filtered or unexported fields
}
func (*LimitedRunner) AddOperation ¶
func (r *LimitedRunner) AddOperation(e Operation) error
func (*LimitedRunner) IsRunning ¶
func (r *LimitedRunner) IsRunning() bool
func (*LimitedRunner) RemoveOperation ¶
func (r *LimitedRunner) RemoveOperation(e Operation) error
func (*LimitedRunner) RemovePolicyById ¶
func (r *LimitedRunner) RemovePolicyById(id uuid.UUID) (Operation, error)
func (*LimitedRunner) Start ¶
func (r *LimitedRunner) Start() error
func (*LimitedRunner) Stop ¶
func (r *LimitedRunner) Stop() error
Click to show internal directories.
Click to hide internal directories.