Documentation
¶
Index ¶
- type Option
- func WithContainerSource(v container.Source) Option
- func WithExpansionRate(v int) Option
- func WithHeadTimeout(v time.Duration) Option
- func WithLocalAddressSource(v network.LocalAddressSource) Option
- func WithLocalStorage(v *localstore.Storage) Option
- func WithLogger(v *logger.Logger) Option
- func WithPlacementBuilder(v placement.Builder) Option
- func WithRemoteHeader(v *headsvc.RemoteHeader) Option
- func WithReplicator(v *replicator.Replicator) Option
- func WithTrigger(v <-chan *Task) Option
- func WithWorkScope(v int) Option
- type Policer
- type Task
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Option ¶
type Option func(*cfg)
Option is an option for Policer constructor.
func WithContainerSource ¶
WithContainerSource returns option to set container source of Policer.
func WithExpansionRate ¶
WithExpansionRate returns option to set expansion rate of Policer's works scope (in %).
func WithHeadTimeout ¶
WithHeadTimeout returns option to set Head timeout of Policer.
func WithLocalAddressSource ¶
func WithLocalAddressSource(v network.LocalAddressSource) Option
WithLocalAddressSource returns option to set local address source of Policer.
func WithLocalStorage ¶
func WithLocalStorage(v *localstore.Storage) Option
WithLocalStorage returns option to set local object storage of Policer.
func WithLogger ¶
WithLogger returns option to set Logger of Policer.
func WithPlacementBuilder ¶
WithPlacementBuilder returns option to set object placement builder of Policer.
func WithRemoteHeader ¶
func WithRemoteHeader(v *headsvc.RemoteHeader) Option
WithRemoteHeader returns option to set object header receiver of Policer.
func WithReplicator ¶
func WithReplicator(v *replicator.Replicator) Option
WithReplicator returns option to set object replicator of Policer.
func WithTrigger ¶
WithTrigger returns option to set triggering channel of Policer.
func WithWorkScope ¶
WithWorkScope returns option to set job work scope value of Policer.