This commit is contained in:
withchao
2023-05-31 16:54:11 +08:00
parent e8763f32d0
commit 26c3c30b82
14 changed files with 4959 additions and 14 deletions
+19
View File
@@ -0,0 +1,19 @@
package office
import (
"github.com/OpenIMSDK/Open-IM-Server/internal/rpc/office"
"github.com/OpenIMSDK/Open-IM-Server/pkg/common/cmd"
"github.com/OpenIMSDK/Open-IM-Server/pkg/common/config"
)
func main() {
rpcCmd := cmd.NewRpcCmd("office")
rpcCmd.AddPortFlag()
rpcCmd.AddPrometheusPortFlag()
if err := rpcCmd.Exec(); err != nil {
panic(err.Error())
}
if err := rpcCmd.StartSvr(config.Config.RpcRegisterName.OpenImOfficeName, office.Start); err != nil {
panic(err.Error())
}
}