Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var DefaultConfig = *flagutil.DefaultConfigFromFlags(&Config{}).(*Config)
DefaultConfig provides default values for the config
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { Enabled bool `yaml:"enabled,omitempty"` ReshardInterval time.Duration `yaml:"reshard_interval,omitempty"` ReshardTimeout time.Duration `yaml:"reshard_timeout,omitempty"` ClusterReshardEventTimeout time.Duration `yaml:"cluster_reshard_event_timeout,omitempty"` KVStore KVConfig `yaml:"kvstore,omitempty"` Lifecycler LifecyclerConfig `yaml:"lifecycler,omitempty"` DangerousAllowReadingFiles bool `yaml:"dangerous_allow_reading_files,omitempty"` Client client.Config `yaml:"-"` APIEnableGetConfiguration bool `yaml:"-"` }
Config describes how to instantiate a scraping service Server instance.
func (*Config) RegisterFlags ¶
RegisterFlags adds the flags required to config the Server to the given FlagSet.
func (*Config) RegisterFlagsWithPrefix ¶
RegisterFlagsWithPrefix adds the flags required to config this to the given FlagSet with a specified prefix.
func (*Config) UnmarshalYAML ¶
UnmarshalYAML implements yaml.Unmarshaler.
type KVConfig ¶
KVConfig wraps the kv.Config type to allow defining IsZero, which is required to make omitempty work when marshalling YAML.
type LifecyclerConfig ¶
type LifecyclerConfig struct {
ring.LifecyclerConfig `yaml:",inline"`
}
LifecyclerConfig wraps the ring.LifecyclerConfig type to allow defining IsZero, which is required to make omitempty work when marshalling YAML.
func (LifecyclerConfig) IsZero ¶
func (l LifecyclerConfig) IsZero() bool
Click to show internal directories.
Click to hide internal directories.