mirror of
https://github.com/openimsdk/open-im-server.git
synced 2025-04-26 19:46:57 +08:00
20 lines
356 B
Go
20 lines
356 B
Go
package main
|
|
|
|
import (
|
|
"OpenIM/internal/rpc/third"
|
|
"OpenIM/pkg/common/cmd"
|
|
"OpenIM/pkg/common/config"
|
|
"fmt"
|
|
"os"
|
|
)
|
|
|
|
func main() {
|
|
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)
|
|
}
|
|
}
|