usp_syslog

package
v1.26.2 Latest Latest
Warning

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

Go to latest
Published: Jan 2, 2025 License: Apache-2.0 Imports: 13 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"`
	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

Jump to

Keyboard shortcuts

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