Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
Functions ¶
func AddTLSFlags ¶
AddTLSFlags register the TLS flags for the specified output type.
Types ¶
type Config ¶
type Config struct { Type Type Output interface{} }
Config contains the output configuration.
type Factory ¶
type Factory func(config Config) (OutputGroup, error)
Factory serves for constructing different output implementations from configuration.
type OutputGroup ¶
type OutputGroup struct { // Clients is the list of clients to which events are forwarded. Clients []Client }
OutputGroup is a collection of outputs that can be configured in a load-balanced fashion.
func Fail ¶
func Fail(err error) (OutputGroup, error)
Fail returns an empty output group and an error signaling the failure that caused the output group initialization.
func Load ¶
func Load(typ Type, config Config) (OutputGroup, error)
Load loads the specified output from configuration. The output must have been registered previously.
func Success ¶
func Success(clients ...Client) OutputGroup
Success builds the output group from the provided clients.
type TLSConfig ¶
type TLSConfig struct { // TLSCA represents the path of the certificate file that is associated with the Certification Authority (CA). TLSCA string `mapstructure:"tls-ca"` // TLSCert is the path to the certificate file. TLSCert string `mapstructure:"tls-cert"` // TLSKey represents the path to the public/private key file. TLSKey string `mapstructure:"tls-key"` // TLSInsecureSkipVerify skips the chain and host verification. TLSInsecureSkipVerify bool `mapstructure:"tls-insecure-skip-verify"` }
TLSConfig stores the client TLS parameters.
Directories ¶
Path | Synopsis |
---|---|
_fixtures/garagemq/amqp
Package amqp for read, write, parse amqp frames Autogenerated code.
|
Package amqp for read, write, parse amqp frames Autogenerated code. |
Click to show internal directories.
Click to hide internal directories.