Documentation ¶
Index ¶
- Constants
- func WithCronTaskLogName() func(*CmdOpts)
- func WithLogName(logName string) func(*CmdOpts)
- type ApiCmd
- type ClearCmd
- type CmdOpts
- type CronTaskCmd
- type FixCmd
- type GetCmd
- type MsgCmd
- type MsgGatewayCmd
- type MsgTransferCmd
- type MsgUtilsCmd
- type RootCmd
- func (r *RootCmd) AddCommand(cmds ...*cobra.Command)
- func (r *RootCmd) AddPortFlag()
- func (r *RootCmd) AddPrometheusPortFlag()
- func (r *RootCmd) Execute() error
- func (r *RootCmd) GetPortFlag() int
- func (r *RootCmd) GetPortFromConfig(portType string) int
- func (r *RootCmd) GetPrometheusPortFlag() int
- func (r *RootCmd) PortFromConfig(portType string) int
- func (r *RootCmd) SetRootCmdPt(cmdItf RootCmdPt)
- type RootCmdPt
- type RpcCmd
- type SeqCmd
Constants ¶
View Source
const ( RpcPushServer = "push" RpcAuthServer = "auth" RpcConversationServer = "conversation" RpcFriendServer = "friend" RpcGroupServer = "group" RpcMsgServer = "msg" RpcThirdServer = "third" RpcUserServer = "user" )
Variables ¶
This section is empty.
Functions ¶
func WithCronTaskLogName ¶
func WithCronTaskLogName() func(*CmdOpts)
func WithLogName ¶
Types ¶
type ClearCmd ¶
type ClearCmd struct {
*MsgUtilsCmd
}
func NewClearCmd ¶
func NewClearCmd() *ClearCmd
type CronTaskCmd ¶
type CronTaskCmd struct {
*RootCmd
}
func NewCronTaskCmd ¶
func NewCronTaskCmd() *CronTaskCmd
func (*CronTaskCmd) Exec ¶
func (c *CronTaskCmd) Exec(f func() error) error
type MsgGatewayCmd ¶
type MsgGatewayCmd struct {
*RootCmd
}
func NewMsgGatewayCmd ¶
func NewMsgGatewayCmd() *MsgGatewayCmd
func (*MsgGatewayCmd) AddWsPortFlag ¶
func (m *MsgGatewayCmd) AddWsPortFlag()
func (*MsgGatewayCmd) Exec ¶
func (m *MsgGatewayCmd) Exec() error
func (*MsgGatewayCmd) GetPortFromConfig ¶ added in v3.4.0
func (m *MsgGatewayCmd) GetPortFromConfig(portType string) int
type MsgTransferCmd ¶
type MsgTransferCmd struct {
*RootCmd
}
func NewMsgTransferCmd ¶
func NewMsgTransferCmd() *MsgTransferCmd
func (*MsgTransferCmd) Exec ¶
func (m *MsgTransferCmd) Exec() error
type MsgUtilsCmd ¶
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) AddFixAllFlag ¶
func (m *MsgUtilsCmd) AddFixAllFlag()
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 RootCmd ¶
func NewRootCmd ¶
func (*RootCmd) AddCommand ¶
func (*RootCmd) AddPortFlag ¶
func (r *RootCmd) AddPortFlag()
func (*RootCmd) AddPrometheusPortFlag ¶
func (r *RootCmd) AddPrometheusPortFlag()
func (*RootCmd) GetPortFlag ¶
func (*RootCmd) GetPortFromConfig ¶ added in v3.4.0
func (*RootCmd) GetPrometheusPortFlag ¶
func (*RootCmd) PortFromConfig ¶ added in v3.4.0
func (*RootCmd) SetRootCmdPt ¶ added in v3.4.0
type RpcCmd ¶
type RpcCmd struct {
*RootCmd
}
func (*RpcCmd) GetPortFromConfig ¶ added in v3.4.0
func (*RpcCmd) StartSvr ¶
func (a *RpcCmd) StartSvr( name string, rpcFn func(discov discoveryregistry.SvcDiscoveryRegistry, server *grpc.Server) error, ) error
Click to show internal directories.
Click to hide internal directories.