Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
CLICommand *kong.Context
)
Functions ¶
Types ¶
type BuildInfoCommand ¶
type BuildInfoCommand struct{}
func (*BuildInfoCommand) Run ¶
func (b *BuildInfoCommand) Run() error
type BuildInfoCommandDef ¶
type BuildInfoCommandDef struct {
Version VersionCommand `cmd:"" help:"Show version"`
Buildinfo BuildInfoCommand `cmd:"" hidden:"" help:"Show build information"`
}
type CLIConfig ¶
type CLIConfig struct {
Logging LoggingConfig `embed:"" prefix:"logging." group:"logging"`
Run RunCommand `cmd:"" default:"1" help:"Stream journald records into DevLogBus"`
BuildInfoCommandDef
}
type LoggingConfig ¶
type LoggingConfig struct {
Level string `default:"info" help:"debug, info, warn, error"`
}
type RunCommand ¶
type RunCommand struct {
Endpoint string `name:"endpoint" help:"DevLogBus endpoint: Unix socket path, unix:/path.sock, tcp://host:port, or host:port"`
Network string `name:"network" help:"Broker network (unix|tcp); ignored when endpoint is set"`
Address string `name:"address" help:"TCP broker address; ignored when endpoint is set"`
SocketPath string `name:"socket" help:"Unix socket path; ignored when endpoint is set"`
Source string `name:"source" default:"journald" help:"Fallback source when the journal entry has no unit or identifier"`
SourceField repeatedStrings `name:"source-field" help:"Journal field to prefer for the DevLogBus source; repeatable"`
Match repeatedStrings `name:"match" help:"Journal match in FIELD=VALUE form; repeatable"`
ExcludeUnit repeatedStrings `name:"exclude-unit" help:"Journal _SYSTEMD_UNIT to skip; repeatable"`
ExcludeIdentifier repeatedStrings `name:"exclude-identifier" help:"SYSLOG_IDENTIFIER or _COMM to skip; repeatable"`
Since string `name:"since" default:"now" help:"Start point: now, all, or a duration like 10m"`
Tail uint64 `name:"tail" default:"0" help:"Replay this many entries from the journal tail before following"`
Once bool `name:"once" help:"Publish available replay entries and exit instead of following"`
AllFields bool `name:"all-fields" help:"Include all journal fields as record attributes"`
Echo bool `name:"echo" help:"Print forwarded records locally"`
PublishTimeout time.Duration `name:"publish-timeout" default:"2s" help:"Per-record publish timeout"`
ReconnectLogWindow time.Duration `name:"reconnect-log-window" default:"30s" help:"Minimum interval for repeated publish failure logs"`
}
func (*RunCommand) Run ¶
func (c *RunCommand) Run() error
type VersionCommand ¶
type VersionCommand struct{}
func (*VersionCommand) Run ¶
func (v *VersionCommand) Run() error
Source Files
¶
Click to show internal directories.
Click to hide internal directories.