Documentation ¶
Overview ¶
https://grpc.io/docs/languages/go/ https://github.com/grpc/grpc-go/tree/master/Documentation https://github.com/grpc/grpc-go/tree/master/examples
The default logger is controlled by environment variables. Turn everything on like this: export GRPC_GO_LOG_VERBOSITY_LEVEL=99 export GRPC_GO_LOG_SEVERITY_LEVEL=info
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Dial ¶
func Dial(target string) (*grpc.ClientConn, error)
Dial creates a client connection to the given target. 目标 localhost:9090 连接用完调用grpc.ClientConn.Close()关闭
func RegisterHealthServer ¶
func RegisterHealthServer(s grpc.ServiceRegistrar)
RegisterHealthServer 注册健康检查
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.