cmd

package
v1.0.0-alpha Latest Latest
Warning

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

Go to latest
Published: Oct 22, 2023 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	App = "switch"
)

Variables

This section is empty.

Functions

func ExecuteStartServerSpf13CobraCommand

func ExecuteStartServerSpf13CobraCommand(opts Opts) func(*cobra.Command, []string)

func NewHttpServerSpf13CobraCommand

func NewHttpServerSpf13CobraCommand(seq ...func(*Opts)) *cobra.Command

func NewRootSpf13CobraCommand

func NewRootSpf13CobraCommand(opts Opts) *cobra.Command

func NewStartServerSpf13CobraCommand

func NewStartServerSpf13CobraCommand(opts Opts) *cobra.Command

func RunHttpServerSpf13CobraCommand

func RunHttpServerSpf13CobraCommand(seq ...func(*Opts))

func RunSpf13CobraCommand

func RunSpf13CobraCommand(f func(Opts) *cobra.Command, seq ...func(*Opts))

func WithApi

func WithApi(name string) func(*Opts)

func WithOption

func WithOption(option fx.Option) func(*Opts)

func WithOptionFactory

func WithOptionFactory(f func(config config.Config) fx.Option) func(*Opts)

Types

type Opts

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

func NewOpts

func NewOpts(seq ...func(*Opts)) Opts

Jump to

Keyboard shortcuts

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