mirror of
https://github.com/openimsdk/open-im-server.git
synced 2025-04-24 10:22:36 +08:00
script
This commit is contained in:
parent
0c98231fcd
commit
b828f1d3d1
@ -8,14 +8,14 @@ import (
|
||||
)
|
||||
|
||||
type PushCmd struct {
|
||||
*RpcCmd
|
||||
*AuthCmd
|
||||
}
|
||||
|
||||
func NewPushCmd() *PushCmd {
|
||||
return &PushCmd{NewRpcCmd()}
|
||||
return &PushCmd{NewAuthCmd()}
|
||||
}
|
||||
|
||||
func (r *RpcCmd) AddPush() {
|
||||
func (r *PushCmd) AddPush() {
|
||||
r.Command.RunE = func(cmd *cobra.Command, args []string) error {
|
||||
return startrpc.Start(r.getPortFlag(cmd), config.Config.RpcRegisterName.OpenImPushName, r.getPrometheusPortFlag(cmd), push.Start)
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user