Documentation
¶
Index ¶
Constants ¶
View Source
const ( ErrNoUsername = "invalid config: missing username" ErrNoPassword = "invalid config: missing password" // #nosec G101 - not hardcoded credentials ErrNotSupported = "invalid config: field '%s' not supported" ErrTransportsSupported = "invalid config: 'transport' must be 'tcp' or 'unix'" ErrHostPort = "invalid config: 'endpoint' must be in the form <host>:<port> no matter what 'transport' is configured" )
Errors for missing required config parameters.
Variables ¶
This section is empty.
Functions ¶
func NewFactory ¶
Types ¶
type Config ¶
type Config struct { scraperhelper.ScraperControllerSettings `mapstructure:",squash"` Username string `mapstructure:"username"` Password configopaque.String `mapstructure:"password"` Databases []string `mapstructure:"databases"` confignet.NetAddr `mapstructure:",squash"` // provides Endpoint and Transport configtls.TLSClientSetting `mapstructure:"tls,omitempty"` // provides SSL details metadata.MetricsBuilderConfig `mapstructure:",squash"` }
Click to show internal directories.
Click to hide internal directories.