cli

package
v0.0.0-...-302cdf8 Latest Latest
Warning

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

Go to latest
Published: Oct 25, 2023 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type LogOptions

type LogOptions struct {
	Verbosity int `name:"verbose" short:"v" type:"counter" default:"0" env:"LOG_LEVEL" help:"Set the verbosity of logs e.g. -vv"`
}

func (*LogOptions) ConfigureLogger

func (lo *LogOptions) ConfigureLogger()

type NatsOptions

type NatsOptions struct {
	NatsUrl         string `short:"n" env:"NATS_URL" default:"nats://localhost:4222"`
	NatsCredentials string `short:"c" env:"NATS_CREDENTIALS_FILE" required:"" type:"path"`
}

func (*NatsOptions) Connect

func (no *NatsOptions) Connect() *nats.Conn

Jump to

Keyboard shortcuts

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