Files
open-im-server/cmd/rpc/auth/main.go
T

20 lines
401 B
Go
Raw Normal View History

2021-05-26 19:40:38 +08:00
package main
import (
2023-02-23 19:15:30 +08:00
"OpenIM/internal/rpc/auth"
2023-03-08 13:34:12 +08:00
"OpenIM/pkg/common/cmd"
2023-02-23 19:15:30 +08:00
"OpenIM/pkg/common/config"
2021-05-26 19:40:38 +08:00
)
func main() {
2023-03-13 12:34:56 +08:00
authCmd := cmd.NewRpcCmd("auth")
2023-03-09 13:26:58 +08:00
authCmd.AddPortFlag()
authCmd.AddPrometheusPortFlag()
2023-03-09 14:43:09 +08:00
if err := authCmd.Exec(); err != nil {
2023-03-13 15:39:47 +08:00
panic(err.Error())
2023-03-09 13:26:58 +08:00
}
if err := authCmd.StartSvr(config.Config.RpcRegisterName.OpenImAuthName, auth.Start); err != nil {
2023-03-13 15:39:47 +08:00
panic(err.Error())
2023-02-24 17:42:01 +08:00
}
2021-05-26 19:40:38 +08:00
}