2022-04-24 11:23:54 +08:00
|
|
|
package main
|
|
|
|
|
|
|
|
|
|
import (
|
2023-02-23 19:15:30 +08:00
|
|
|
"OpenIM/internal/rpc/conversation"
|
|
|
|
|
"OpenIM/internal/startrpc"
|
|
|
|
|
"OpenIM/pkg/common/config"
|
2022-04-24 11:23:54 +08:00
|
|
|
)
|
|
|
|
|
|
|
|
|
|
func main() {
|
2023-02-24 17:42:01 +08:00
|
|
|
if err := config.InitConfig(); err != nil {
|
|
|
|
|
panic(err.Error())
|
|
|
|
|
}
|
|
|
|
|
if err := startrpc.Start(config.Config.RpcPort.OpenImConversationPort[0], config.Config.RpcRegisterName.OpenImConversationName, config.Config.Prometheus.ConversationPrometheusPort[0], conversation.Start); err != nil {
|
|
|
|
|
panic(err.Error())
|
|
|
|
|
}
|
2022-04-24 11:23:54 +08:00
|
|
|
}
|