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

16 lines
283 B
Go
Raw Normal View History

2022-03-25 18:46:27 +08:00
package main
import (
rpc "Open_IM/internal/rpc/office"
"flag"
2022-04-06 15:33:16 +08:00
"fmt"
2022-03-25 18:46:27 +08:00
)
func main() {
rpcPort := flag.Int("port", 11100, "rpc listening port")
flag.Parse()
2022-04-06 15:33:16 +08:00
fmt.Println("start office rpc server, port: ", *rpcPort)
2022-03-25 18:46:27 +08:00
rpcServer := rpc.NewOfficeServer(*rpcPort)
rpcServer.Run()
}