Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type SyslogAdapter ¶
type SyslogAdapter struct {
// contains filtered or unexported fields
}
func NewSyslogAdapter ¶
func NewSyslogAdapter(ctx context.Context, conf SyslogConfig) (*SyslogAdapter, chan struct{}, error)
func (*SyslogAdapter) Close ¶
func (a *SyslogAdapter) Close() error
type SyslogConfig ¶
type SyslogConfig struct {
ClientOptions uspclient.ClientOptions `json:"client_options" yaml:"client_options"`
Port uint16 `json:"port" yaml:"port"`
Interface string `json:"iface" yaml:"iface"`
IsUDP bool `json:"is_udp,omitempty" yaml:"is_udp,omitempty"`
SslCertPath string `json:"ssl_cert" yaml:"ssl_cert"`
SslKeyPath string `json:"ssl_key" yaml:"ssl_key"`
MutualTlsCertPath string `json:"mutual_tls_cert,omitempty" yaml:"mutual_tls_cert,omitempty"`
WriteTimeoutSec uint64 `json:"write_timeout_sec,omitempty" yaml:"write_timeout_sec,omitempty"`
}
func (*SyslogConfig) Validate ¶
func (c *SyslogConfig) Validate() error
Click to show internal directories.
Click to hide internal directories.