cmd

package
v3.8.0-rc.1 Latest Latest
Warning

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

Go to latest
Published: Jul 26, 2024 License: Apache-2.0 Imports: 23 Imported by: 13

Documentation

Index

Constants

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

Variables

View Source
var (
	FileName                         string
	NotificationFileName             string
	ShareFileName                    string
	WebhooksConfigFileName           string
	LocalCacheConfigFileName         string
	KafkaConfigFileName              string
	RedisConfigFileName              string
	MongodbConfigFileName            string
	MinioConfigFileName              string
	LogConfigFileName                string
	OpenIMAPICfgFileName             string
	OpenIMCronTaskCfgFileName        string
	OpenIMMsgGatewayCfgFileName      string
	OpenIMMsgTransferCfgFileName     string
	OpenIMPushCfgFileName            string
	OpenIMRPCAuthCfgFileName         string
	OpenIMRPCConversationCfgFileName string
	OpenIMRPCFriendCfgFileName       string
	OpenIMRPCGroupCfgFileName        string
	OpenIMRPCMsgCfgFileName          string
	OpenIMRPCThirdCfgFileName        string
	OpenIMRPCUserCfgFileName         string
	DiscoveryConfigFilename          string
)
View Source
var ConfigEnvPrefixMap map[string]string

Functions

func WithConfigMap added in v3.7.0

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

func WithCronTaskLogName

func WithCronTaskLogName() func(*CmdOpts)

func WithLogName

func WithLogName(logName string) func(*CmdOpts)

Types

type ApiCmd

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

func NewApiCmd

func NewApiCmd() *ApiCmd

func (*ApiCmd) Exec added in v3.7.0

func (a *ApiCmd) Exec() error

type AuthRpcCmd added in v3.7.0

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

func NewAuthRpcCmd added in v3.7.0

func NewAuthRpcCmd() *AuthRpcCmd

func (*AuthRpcCmd) Exec added in v3.7.0

func (a *AuthRpcCmd) Exec() error

type ClearCmd

type ClearCmd struct {
	*MsgUtilsCmd
}

func NewClearCmd

func NewClearCmd() *ClearCmd

type CmdOpts

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

type ConversationRpcCmd added in v3.7.0

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

func NewConversationRpcCmd added in v3.7.0

func NewConversationRpcCmd() *ConversationRpcCmd

func (*ConversationRpcCmd) Exec added in v3.7.0

func (a *ConversationRpcCmd) Exec() error

type CronTaskCmd

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

func NewCronTaskCmd

func NewCronTaskCmd() *CronTaskCmd

func (*CronTaskCmd) Exec

func (a *CronTaskCmd) Exec() error

type FixCmd

type FixCmd struct {
	*MsgUtilsCmd
}

func NewFixCmd

func NewFixCmd() *FixCmd

type FriendRpcCmd added in v3.7.0

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

func NewFriendRpcCmd added in v3.7.0

func NewFriendRpcCmd() *FriendRpcCmd

func (*FriendRpcCmd) Exec added in v3.7.0

func (a *FriendRpcCmd) Exec() error

type GetCmd

type GetCmd struct {
	*MsgUtilsCmd
}

func NewGetCmd

func NewGetCmd() *GetCmd

type GroupRpcCmd added in v3.7.0

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

func NewGroupRpcCmd added in v3.7.0

func NewGroupRpcCmd() *GroupRpcCmd

func (*GroupRpcCmd) Exec added in v3.7.0

func (a *GroupRpcCmd) Exec() error

type MsgCmd

type MsgCmd struct {
	*MsgUtilsCmd
}

func NewMsgCmd

func NewMsgCmd() *MsgCmd

func (*MsgCmd) ClearMsgCmd

func (m *MsgCmd) ClearMsgCmd() *cobra.Command

func (*MsgCmd) GetMsgCmd

func (m *MsgCmd) GetMsgCmd() *cobra.Command

type MsgGatewayCmd

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

func NewMsgGatewayCmd

func NewMsgGatewayCmd() *MsgGatewayCmd

func (*MsgGatewayCmd) Exec

func (m *MsgGatewayCmd) Exec() error

type MsgRpcCmd added in v3.7.0

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

func NewMsgRpcCmd added in v3.7.0

func NewMsgRpcCmd() *MsgRpcCmd

func (*MsgRpcCmd) Exec added in v3.7.0

func (a *MsgRpcCmd) Exec() error

type MsgTransferCmd

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

func NewMsgTransferCmd

func NewMsgTransferCmd() *MsgTransferCmd

func (*MsgTransferCmd) Exec

func (m *MsgTransferCmd) Exec() error

type MsgUtilsCmd

type MsgUtilsCmd struct {
	cobra.Command
}

func NewMsgUtilsCmd

func NewMsgUtilsCmd(use, short string, args cobra.PositionalArgs) *MsgUtilsCmd

func (*MsgUtilsCmd) AddBeginSeqFlag

func (m *MsgUtilsCmd) AddBeginSeqFlag()

func (*MsgUtilsCmd) AddClearAllFlag

func (m *MsgUtilsCmd) AddClearAllFlag()

func (*MsgUtilsCmd) AddConfigDirFlag added in v3.7.0

func (m *MsgUtilsCmd) AddConfigDirFlag()

func (*MsgUtilsCmd) AddFixAllFlag

func (m *MsgUtilsCmd) AddFixAllFlag()

func (*MsgUtilsCmd) AddIndexFlag added in v3.7.0

func (m *MsgUtilsCmd) AddIndexFlag()

func (*MsgUtilsCmd) AddLimitFlag

func (m *MsgUtilsCmd) AddLimitFlag()

func (*MsgUtilsCmd) AddSuperGroupIDFlag

func (m *MsgUtilsCmd) AddSuperGroupIDFlag()

func (*MsgUtilsCmd) AddUserIDFlag

func (m *MsgUtilsCmd) AddUserIDFlag()

func (*MsgUtilsCmd) Execute

func (m *MsgUtilsCmd) Execute() error

type PushRpcCmd added in v3.7.0

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

func NewPushRpcCmd added in v3.7.0

func NewPushRpcCmd() *PushRpcCmd

func (*PushRpcCmd) Exec added in v3.7.0

func (a *PushRpcCmd) Exec() error

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) ConfigPath added in v3.8.0

func (r *RootCmd) ConfigPath() string

func (*RootCmd) Execute

func (r *RootCmd) Execute() error

func (*RootCmd) Index added in v3.7.0

func (r *RootCmd) Index() int

func (*RootCmd) Port added in v3.6.0

func (r *RootCmd) Port() int

type SeqCmd

type SeqCmd struct {
	*MsgUtilsCmd
}

func NewSeqCmd

func NewSeqCmd() *SeqCmd

func (*SeqCmd) FixSeqCmd

func (s *SeqCmd) FixSeqCmd() *cobra.Command

func (*SeqCmd) GetSeqCmd

func (s *SeqCmd) GetSeqCmd() *cobra.Command

type ThirdRpcCmd added in v3.7.0

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

func NewThirdRpcCmd added in v3.7.0

func NewThirdRpcCmd() *ThirdRpcCmd

func (*ThirdRpcCmd) Exec added in v3.7.0

func (a *ThirdRpcCmd) Exec() error

type UserRpcCmd added in v3.7.0

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

func NewUserRpcCmd added in v3.7.0

func NewUserRpcCmd() *UserRpcCmd

func (*UserRpcCmd) Exec added in v3.7.0

func (a *UserRpcCmd) Exec() error

Jump to

Keyboard shortcuts

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