Files
open-im-server/cmd/rpc/third/main.go
T

20 lines
356 B
Go
Raw Normal View History

2023-03-03 18:59:28 +08:00
package main
import (
"OpenIM/internal/rpc/third"
2023-03-08 13:34:12 +08:00
"OpenIM/pkg/common/cmd"
2023-03-03 18:59:28 +08:00
"OpenIM/pkg/common/config"
2023-03-08 13:34:12 +08:00
"fmt"
"os"
2023-03-03 18:59:28 +08:00
)
func main() {
2023-03-08 13:34:12 +08:00
rpcCmd := cmd.NewRpcCmd(config.Config.RpcRegisterName.OpenImThirdName)
rpcCmd.AddPortFlag()
rpcCmd.AddPrometheusPortFlag()
if err := rpcCmd.Exec(third.Start); err != nil {
fmt.Println(err.Error())
os.Exit(1)
2023-03-03 18:59:28 +08:00
}
}