mirror of
https://github.com/openimsdk/open-im-server.git
synced 2025-04-26 03:26:57 +08:00
20 lines
358 B
Go
20 lines
358 B
Go
package main
|
|
|
|
import (
|
|
"OpenIM/internal/rpc/third"
|
|
"OpenIM/pkg/common/cmd"
|
|
"OpenIM/pkg/common/config"
|
|
"fmt"
|
|
"os"
|
|
)
|
|
|
|
func main() {
|
|
rpcCmd := cmd.NewRpcCmd()
|
|
rpcCmd.AddPortFlag()
|
|
rpcCmd.AddPrometheusPortFlag()
|
|
if err := rpcCmd.Exec(config.Config.RpcRegisterName.OpenImThirdName, third.Start); err != nil {
|
|
fmt.Println(err.Error())
|
|
os.Exit(1)
|
|
}
|
|
}
|