Documentation
¶
Index ¶
- Variables
- func RunCmd(cmdName string, options ...CmdOption)
- type CmdKit
- type CmdOption
- type ServeCmdOption
- func WithServeCmdBBoltPath(path *string) ServeCmdOption
- func WithServeCmdBindFlag(flags interface{}) ServeCmdOption
- func WithServeCmdConfigValidation(validator interface{ ... }) ServeCmdOption
- func WithServeCmdConfigurable() ServeCmdOption
- func WithServeCmdDebuggable(debug *bool) ServeCmdOption
- func WithServeCmdFlagSet(fn func(kit *CmdKit, set *flag.FlagSet)) ServeCmdOption
- func WithServeCmdPromFactorySetup() ServeCmdOption
- func WithServeCmdRun(fn func(ctx context.Context, args []string) error) ServeCmdOption
- func WithServeCodePushAddr(addr *string) ServeCmdOption
- func WithServeFilerAddr(addr *string) ServeCmdOption
- func WithServeGrpcPort(port *int) ServeCmdOption
- func WithServeHttpPort(port *int) ServeCmdOption
- func WithServeSessionAddr(addr *string) ServeCmdOption
Constants ¶
This section is empty.
Variables ¶
View Source
var ( Version string BuildTime string BuildPlatform string )
Functions ¶
Types ¶
type CmdKit ¶
type CmdKit struct {
// contains filtered or unexported fields
}
func (*CmdKit) FlagNameWithPrefix ¶
type CmdOption ¶
type CmdOption func(kit *CmdKit)
func WithCmdName ¶
func WithServeCmd ¶
func WithServeCmd(options ...ServeCmdOption) CmdOption
type ServeCmdOption ¶
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
Click to show internal directories.
Click to hide internal directories.