cmd

package
v0.0.1-alpha.1 Latest Latest
Warning

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

Go to latest
Published: Aug 21, 2022 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

View Source
const (
	FlagLogLevel    = "log-level"
	FlagConfig      = "config"
	FlagConfigShort = "c"

	FlagQueueSize    = "queue-size"
	FlagWorkers      = "workers"
	FlagPerWorkerQPS = "per-worker-qps"
	FlagMaxRetry     = "max-retry"
	FlagRetryDelay   = "retry-delay"
	FlagActionRetry  = "action-retry"
	FlagTimeout      = "timeout"

	FlagRegistrySize = "registry-size"
)

Variables

This section is empty.

Functions

func NewCommand

func NewCommand() *cobra.Command

func NewVersionCommand

func NewVersionCommand() *cobra.Command

Types

type Option

type Option struct {
	LogLevel string
	Config   string

	QueueSize    int
	Workers      int
	PerWorkerQPS int
	MaxRetry     int
	RetryDelay   int
	ActionRetry  bool
	Timeout      int

	RegistrySize int
}

func NewOption

func NewOption() *Option

func (*Option) GetExecutorConfig

func (o *Option) GetExecutorConfig() executor.Config

func (*Option) Validate

func (o *Option) Validate() (*Option, error)

func (*Option) WithCliFlags

func (o *Option) WithCliFlags(flags *pflag.FlagSet) *Option

func (*Option) WithDefaults

func (o *Option) WithDefaults() *Option

func (*Option) WithEnvVariables

func (o *Option) WithEnvVariables() *Option

Jump to

Keyboard shortcuts

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