Documentation
¶
Index ¶
- func RunClient(args []string, opts []fx.Option) error
- func RunServer(args []string, opts []fx.Option) error
- type Command
- func (c *Command) AddClient(opts []fx.Option) *cobra.Command
- func (c *Command) AddClientCommand(name, description string, opts []fx.Option) *cobra.Command
- func (c *Command) AddServer(opts []fx.Option) *cobra.Command
- func (c *Command) AddServerCommand(name, description string, opts []fx.Option) *cobra.Command
- func (c *Command) AddVersion(version string) *cobra.Command
- func (c *Command) AddWorker(opts []fx.Option) *cobra.Command
- func (c *Command) Run() error
- func (c *Command) RunWithArg(arg string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Command ¶ added in v1.39.0
type Command struct {
// contains filtered or unexported fields
}
Command for application.
func (*Command) AddClientCommand ¶ added in v1.56.2
AddClientCommand to root.
func (*Command) AddServerCommand ¶ added in v1.56.2
AddServerCommand to root.
func (*Command) AddVersion ¶ added in v1.61.0
AddVersion to root.
func (*Command) RunWithArg ¶ added in v1.39.1
Run the command with a an arg.
Click to show internal directories.
Click to hide internal directories.