Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RunWatcher ¶ added in v0.3.0
func RunWatcher(ctx context.Context, watcher lookout.Watcher, eventHandler lookout.EventHandler) error
RunWatcher starts the watcher with the given handler callback. On failure the watcher is restarted
Types ¶
type DBOptions ¶ added in v0.0.4
type DBOptions struct {
DB string `` /* 157-byte string literal not displayed */
}
DBOptions contains common flags for commands using the DB
type LogOptions ¶
type LogOptions struct {
gocli.LogOptions `group:"Log Options"`
}
LogOptions defines logging flags. It is meant to be embedded in a command struct. It is similar to go-cli LogOptions, but adds the application name field to the default logger. It also configures the standard logrus logger with the same default values as go-log
type QueueOptions ¶ added in v0.3.0
type QueueOptions struct { Queue string `long:"queue" env:"LOOKOUT_QUEUE" default:"lookout" description:"queue name"` Broker string `long:"broker" env:"LOOKOUT_BROKER" default:"amqp://localhost:5672" description:"broker service URI"` Q queue.Queue }
QueueOptions contains common flags for commands using a Queue
func (*QueueOptions) InitQueue ¶ added in v0.3.0
func (c *QueueOptions) InitQueue() error
InitQueue initializes the queue from the given cli options.
type VersionCommand ¶ added in v0.1.4
type VersionCommand struct { // Name of the binary Name string // Version of the binary Version string // Build of the binary Build string }
VersionCommand represents the `version` command of the CLI.
func (*VersionCommand) Execute ¶ added in v0.1.4
func (v *VersionCommand) Execute(args []string) error
Execute prints the build information provided at the compilation time.