mirror of
https://gitee.com/johng/gf
synced 2026-06-07 02:12:11 +08:00
19 lines
460 B
Go
19 lines
460 B
Go
// 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"
|
|
"github.com/gogf/gf/example/rpc/grpcx/balancer/controller"
|
|
)
|
|
|
|
func main() {
|
|
s := grpcx.Server.New()
|
|
controller.Register(s)
|
|
s.Run()
|
|
}
|