Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type GrpcClient ¶
GrpcClient grpc客户端
func NewGrpcClient ¶
func NewGrpcClient(serviceName string, port int, streamClientInterceptors []grpc.StreamClientInterceptor, unaryClientInterceptors []grpc.UnaryClientInterceptor) *GrpcClient
NewGrpcClient 创建Grpc客户端
type GrpcServer ¶
GrpcServer 服务端
func NewGrpcServer ¶
func NewGrpcServer(name string, address string, streamServerInterceptors []grpc.StreamServerInterceptor, unaryServerInterceptors []grpc.UnaryServerInterceptor) *GrpcServer
NewGrpcServer 创建Grpc服务端
Click to show internal directories.
Click to hide internal directories.