You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Open-IM-Server/cmd/push/main.go

20 lines
498 B

4 years ago
package main
import (
2 years ago
"OpenIM/internal/push"
2 years ago
"OpenIM/internal/startrpc"
2 years ago
"OpenIM/pkg/common/config"
"OpenIM/pkg/common/constant"
"OpenIM/pkg/common/log"
4 years ago
)
func main() {
2 years ago
if err := config.InitConfig(); err != nil {
panic(err.Error())
}
3 years ago
log.NewPrivateLog(constant.LogFileName)
2 years ago
if err := startrpc.Start(config.Config.RpcPort.OpenImAuthPort[0], config.Config.RpcRegisterName.OpenImAuthName, config.Config.Prometheus.AuthPrometheusPort[0], push.Start); err != nil {
2 years ago
panic(err.Error())
}
4 years ago
}