Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewFactory ¶
Types ¶
type ClientAuth ¶
type ClientAuth struct {
APIKey string `mapstructure:"api_key"`
CollectorID string `mapstructure:"collector_id"`
Insecure bool `mapstructure:"insecure"`
Environment map[string]string `mapstructure:"environment"`
}
func (*ClientAuth) Validate ¶
func (cfg *ClientAuth) Validate() error
type Config ¶
type Config struct {
ServerAuth *ServerAuth `mapstructure:"server_auth"`
ClientAuth *ClientAuth `mapstructure:"client_auth"`
}
type ServerAuth ¶
type ServerAuth struct {
confighttp.ClientConfig `mapstructure:",squash"`
CacheTTLValid time.Duration `mapstructure:"cache_ttl_valid"`
CacheTTLInvalid time.Duration `mapstructure:"cache_ttl_invalid"`
}
func (*ServerAuth) Validate ¶
func (cfg *ServerAuth) Validate() error
Click to show internal directories.
Click to hide internal directories.