Files
gf/example/rpc/grpcx/basic/server/server.go

19 lines
457 B
Go
Raw Permalink Normal View History

2023-03-08 14:12:51 +08:00
// Copyright GoFrame Author(https://goframe.org). All Rights Reserved.
//
// This Source Code Form is subject to the terms of the MIT License.
// If a copy of the MIT was not distributed with this file,
// You can obtain one at https://github.com/gogf/gf.
package main
import (
"github.com/gogf/gf/contrib/rpc/grpcx/v2"
2023-03-17 17:51:10 +08:00
"github.com/gogf/gf/example/rpc/grpcx/basic/controller"
2023-03-08 14:12:51 +08:00
)
func main() {
s := grpcx.Server.New()
2023-03-17 17:51:10 +08:00
controller.Register(s)
2023-03-08 14:12:51 +08:00
s.Run()
}