cmd

package
v1.7.1 Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2024 License: GPL-3.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

View Source
const (
	FlagConf          = "config_folder_path"
	FlagTransferIndex = "index"
)

Variables

View Source
var (
	ShareFileName           = "share.yml"
	RedisConfigFileName     = "redis.yml"
	ZookeeperConfigFileName = "zookeeper.yml"
	MongodbConfigFileName   = "mongodb.yml"
	LogConfigFileName       = "log.yml"
	ChatAPIAdminCfgFileName = "chat-api-admin.yml"
	ChatAPIChatCfgFileName  = "chat-api-chat.yml"
	ChatRPCAdminCfgFileName = "chat-rpc-admin.yml"
	ChatRPCChatCfgFileName  = "chat-rpc-chat.yml"
)
View Source
var ConfigEnvPrefixMap map[string]string

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