Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ClientOptions = []grpc.DialOption{ grpc.WithInsecure(), grpc.WithKeepaliveParams(keepalive.ClientParameters{ Time: 30 * time.Second, Timeout: 10 * time.Second, PermitWithoutStream: true, }), }
Functions ¶
func NewTLSClient ¶
Types ¶
type GrpcServer ¶
func NewGrpcServer ¶
func NewGrpcServer(serviceName string, port int) *GrpcServer
func (*GrpcServer) Serve ¶
func (g *GrpcServer) Serve(callback RegisterCallback, opt ...grpc.ServerOption)
type RegisterCallback ¶
Click to show internal directories.
Click to hide internal directories.