Documentation ¶
Overview ¶
Package config parses Tracer configuration files.
Index ¶
- type Config
- func (cfg Config) QueryTransportConfig(engine string) (map[string]interface{}, error)
- func (cfg Config) QueryTransports() ([]string, error)
- func (cfg Config) Storage() (string, error)
- func (cfg Config) StorageConfig() (map[string]interface{}, error)
- func (cfg Config) StorageTransport() (string, error)
- func (cfg Config) StorageTransportConfig() (map[string]interface{}, error)
- type MissingKeyError
- type MissingSectionError
- type WrongValueTypeError
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
// contains filtered or unexported fields
}
Config is the Tracer configuration file.
func (Config) QueryTransportConfig ¶
QueryTransportConfig returns the configuration of a query transport.
func (Config) QueryTransports ¶
QueryTransports returns the names of the query transports.
func (Config) StorageConfig ¶
StorageConfig returns the configuration of the storage engine.
func (Config) StorageTransport ¶
StorageTransport returns the name of the storage transport.
func (Config) StorageTransportConfig ¶
StorageTransportConfig returns the configuration of the storage transport.
type MissingKeyError ¶
type MissingKeyError string
MissingKeyError is returned when a configuration key is missing.
func (MissingKeyError) Error ¶
func (err MissingKeyError) Error() string
type MissingSectionError ¶
type MissingSectionError string
MissingSectionError is returned when a configuration section is missing.
func (MissingSectionError) Error ¶
func (err MissingSectionError) Error() string
type WrongValueTypeError ¶
WrongValueTypeError is returned when a configuration key has the wrong type.
func (WrongValueTypeError) Error ¶
func (err WrongValueTypeError) Error() string