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 Serializer ¶ added in v1.5.0
type Serializer string
Serializer is the type definition for the output serializers.
const ( // JSON represents the JSON serializer type. JSON Serializer = "json" )
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.
type Type ¶
type Type uint8
Type is the alias for the output type.
const ( // Console represents the default terminal output. Console Type = iota // AMQP denotes the AMQP output. AMQP // Elasticsearch denotes the Elasticsearch output. Elasticsearch // HTTP denotes the HTTP output. HTTP // Eventlog denotes the eventlog output. Eventlog // Null is the null output. Null // Unknown is an undefined output type. Unknown )
func TypeFromString ¶ added in v1.5.0
TypeFromString parses output type from input string.
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. |