cli

package
v0.9.2 Latest Latest
Warning

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

Go to latest
Published: Apr 12, 2023 License: MPL-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type App

type App struct {
	Version  string
	DB       database.Database
	Queue    queue.Queuer
	Logger   log.StdLogger
	Tracer   tracer.Tracer
	Cache    cache.Cache
	Limiter  limiter.RateLimiter
	Searcher searcher.Searcher
}

App is the core dependency of the entire binary.

type ConvoyCli

type ConvoyCli struct {
	// contains filtered or unexported fields
}

func NewCli

func NewCli(app *App, db *postgres.Postgres) *ConvoyCli

func (*ConvoyCli) AddCommand

func (c *ConvoyCli) AddCommand(subCmd *cobra.Command)

func (*ConvoyCli) Execute

func (c *ConvoyCli) Execute() error

func (*ConvoyCli) Flags

func (c *ConvoyCli) Flags() *flag.FlagSet

func (*ConvoyCli) PersistentPostRunE

func (c *ConvoyCli) PersistentPostRunE(fn func(*cobra.Command, []string) error)

func (*ConvoyCli) PersistentPreRunE

func (c *ConvoyCli) PersistentPreRunE(fn func(*cobra.Command, []string) error)

Jump to

Keyboard shortcuts

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