svrkit

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Oct 16, 2020 License: GPL-3.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Version       string
	BuildTime     string
	BuildPlatform string
)

Functions

func RunCmd

func RunCmd(cmdName string, options ...CmdOption)

Types

type CmdKit

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

func (*CmdKit) FlagNameWithPrefix

func (k *CmdKit) FlagNameWithPrefix(flagName string) string

type CmdOption

type CmdOption func(kit *CmdKit)

func WithCmdName

func WithCmdName(name string) CmdOption

func WithServeCmd

func WithServeCmd(options ...ServeCmdOption) CmdOption

type ServeCmdOption

type ServeCmdOption func(kit *CmdKit, cmd *ffcli.Command)

func WithServeCmdBBoltPath

func WithServeCmdBBoltPath(path *string) ServeCmdOption

func WithServeCmdBindFlag

func WithServeCmdBindFlag(flags interface{}) ServeCmdOption

func WithServeCmdConfigValidation

func WithServeCmdConfigValidation(validator interface {
	Validate() error
}) ServeCmdOption

func WithServeCmdConfigurable

func WithServeCmdConfigurable() ServeCmdOption

func WithServeCmdDebuggable

func WithServeCmdDebuggable(debug *bool) ServeCmdOption

func WithServeCmdFlagSet

func WithServeCmdFlagSet(fn func(kit *CmdKit, set *flag.FlagSet)) ServeCmdOption

func WithServeCmdPromFactorySetup

func WithServeCmdPromFactorySetup() ServeCmdOption

func WithServeCmdRun

func WithServeCmdRun(fn func(ctx context.Context, args []string) error) ServeCmdOption

func WithServeCodePushAddr

func WithServeCodePushAddr(addr *string) ServeCmdOption

func WithServeFilerAddr

func WithServeFilerAddr(addr *string) ServeCmdOption

func WithServeGrpcPort

func WithServeGrpcPort(port *int) ServeCmdOption

func WithServeHttpPort

func WithServeHttpPort(port *int) ServeCmdOption

func WithServeSessionAddr

func WithServeSessionAddr(addr *string) ServeCmdOption

Jump to

Keyboard shortcuts

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