Documentation
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Config ¶
type Config struct { Addr null.String `json:"addr,omitempty" envconfig:"K6_STATSD_ADDR"` BufferSize null.Int `json:"bufferSize,omitempty" envconfig:"K6_STATSD_BUFFER_SIZE"` Namespace null.String `json:"namespace,omitempty" envconfig:"K6_STATSD_NAMESPACE"` PushInterval types.NullDuration `json:"pushInterval,omitempty" envconfig:"K6_STATSD_PUSH_INTERVAL"` }
Config defines the StatsD configuration.
func NewConfig ¶
func NewConfig() Config
NewConfig creates a new Config instance with default values for some fields.
func (Config) Apply ¶
Apply saves config non-zero config values from the passed config in the receiver.
func (Config) GetBufferSize ¶
GetBufferSize returns the size of the commands buffer.
func (Config) GetNamespace ¶
GetNamespace returns the namespace prepended to all statsd calls.
func (Config) GetPushInterval ¶
func (c Config) GetPushInterval() types.NullDuration
GetPushInterval returns the time interval between outgoing data batches.