Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Execute ¶
func Execute(opts ...CommandOption) error
Execute adds all child commands to the root command and sets flags appropriately. This is called by main.main(). It only needs to happen once to the rootCmd.
Types ¶
type CommandOption ¶
type CommandOption func(c Command)
func WithOutput ¶
func WithOutput(out io.Writer) CommandOption
type Config ¶
type Config struct { Addr string `yaml:"addr" env:"LOG_CACHE_ADDR"` SkipAuth bool `yaml:"skip_auth" env:"LOG_CACHE_SKIP_AUTH"` }
func BuildConfig ¶
BuildConfig reads in config file and ENV variables if set and returns a config object.
type MetaOption ¶
type MetaOption func(*Meta)
func WithMetaNoHeaders ¶
func WithMetaNoHeaders() MetaOption
func WithMetaTimeout ¶
func WithMetaTimeout(d time.Duration) MetaOption
type TailOption ¶
type TailOption func(*Tail)
func WithTailNoHeaders ¶
func WithTailNoHeaders() TailOption
func WithTailTimeout ¶
func WithTailTimeout(d time.Duration) TailOption
Click to show internal directories.
Click to hide internal directories.