cmd

package
v1.8.4 Latest Latest
Warning

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

Go to latest
Published: Jan 9, 2025 License: GPL-3.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func WithConfigMap

func WithConfigMap(configMap map[string]any) func(*CmdOpts)

func WithLogName

func WithLogName(logName string) func(*CmdOpts)

Types

type AdminApiCmd

type AdminApiCmd struct {
	*RootCmd
	// contains filtered or unexported fields
}

func NewAdminApiCmd

func NewAdminApiCmd() *AdminApiCmd

func (*AdminApiCmd) Exec

func (a *AdminApiCmd) Exec() error

type AdminRpcCmd

type AdminRpcCmd struct {
	*RootCmd
	// contains filtered or unexported fields
}

func NewAdminRpcCmd

func NewAdminRpcCmd() *AdminRpcCmd

func (*AdminRpcCmd) Exec

func (a *AdminRpcCmd) Exec() error

type ChatApiCmd

type ChatApiCmd struct {
	*RootCmd
	// contains filtered or unexported fields
}

func NewChatApiCmd

func NewChatApiCmd() *ChatApiCmd

func (*ChatApiCmd) Exec

func (a *ChatApiCmd) Exec() error

type ChatRpcCmd

type ChatRpcCmd struct {
	*RootCmd
	// contains filtered or unexported fields
}

func NewChatRpcCmd

func NewChatRpcCmd() *ChatRpcCmd

func (*ChatRpcCmd) Exec

func (a *ChatRpcCmd) Exec() error

type CmdOpts

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

type RootCmd

type RootCmd struct {
	Command cobra.Command
	// contains filtered or unexported fields
}

func NewRootCmd

func NewRootCmd(processName string, opts ...func(*CmdOpts)) *RootCmd

func (*RootCmd) Execute

func (r *RootCmd) Execute() error

func (*RootCmd) Index

func (r *RootCmd) Index() int

func (*RootCmd) Port

func (r *RootCmd) Port() int

Jump to

Keyboard shortcuts

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