cmd

package
v1.24.1 Latest Latest
Warning

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

Go to latest
Published: Jul 19, 2021 License: Unlicense Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New added in v1.21.0

func New(timeout time.Duration, serverOpts []fx.Option, workerOpts []fx.Option) (*cobra.Command, error)

New command with serve and worker.

func RunServer

func RunServer(args []string, timeout time.Duration, opts []fx.Option) error

RunServer with args and a timeout.

Types

type Config added in v1.21.0

type Config struct {
	Name        string `envconfig:"SERVICE_NAME" required:"true"`
	Description string `envconfig:"SERVICE_DESCRIPTION" required:"true"`
}

Config for cmd.

func NewConfig added in v1.21.0

func NewConfig() (*Config, error)

NewConfig for cmd.

Jump to

Keyboard shortcuts

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