usp_syslog

package
v0.0.0-...-a979c26 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 12, 2023 License: Apache-2.0 Imports: 11 Imported by: 0

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(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"`
	WriteTimeoutSec uint64                  `json:"write_timeout_sec,omitempty" yaml:"write_timeout_sec,omitempty"`
}

func (*SyslogConfig) Validate

func (c *SyslogConfig) Validate() error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL