types

package
v0.0.0-...-1e996ec Latest Latest
Warning

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

Go to latest
Published: Mar 20, 2024 License: BSD-3-Clause Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	JSONLogFormat = "json"
	TextLogFormat = "text"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Log         LogConfig
	SSHRecorder SSHRecorderConfig
	Loghead     LogheadConfig
}

func LoadConfig

func LoadConfig() (*Config, error)

type FileLoggerConfig

type FileLoggerConfig struct {
	Enabled bool
	Dir     string
}

func GetFileLoggerConfig

func GetFileLoggerConfig() FileLoggerConfig

type ForwardingConfig

type ForwardingConfig struct {
	Enabled bool
	Addr    string
}

func GetForwardingConfig

func GetForwardingConfig() ForwardingConfig

type ListenerConfig

type ListenerConfig struct {
	Type string
	Addr string
	Port string
	TS   TSConfig
}

func GetListenerConfig

func GetListenerConfig(base string) ListenerConfig

type LogConfig

type LogConfig struct {
	Level  zerolog.Level
	Format string
}

func GetLogConfig

func GetLogConfig() LogConfig

type LogheadConfig

type LogheadConfig struct {
	Processors ProcessorConfig
	Listener   ListenerConfig
}

func GetLogheadConfig

func GetLogheadConfig() LogheadConfig

type ProcessorConfig

type ProcessorConfig struct {
	FileLogger FileLoggerConfig
	Metrics    bool
	Hostinfo   bool
	Forward    ForwardingConfig
}

func GetProcessorConfig

func GetProcessorConfig() ProcessorConfig

type SSHRecorderConfig

type SSHRecorderConfig struct {
	Dir      string
	Listener ListenerConfig
}

func GetSSHRecorderConfig

func GetSSHRecorderConfig() SSHRecorderConfig

type TSConfig

type TSConfig struct {
	AuthKey     string
	ControllURL string
	HostName    string
	Dir         string
}

func GetTSConfig

func GetTSConfig(base string) TSConfig

Jump to

Keyboard shortcuts

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