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)
func (*GrpcServer) ShowErrorCause ¶
func (g *GrpcServer) ShowErrorCause(b bool) *GrpcServer
func (*GrpcServer) WithBuilder ¶
func (g *GrpcServer) WithBuilder(b builderT) *GrpcServer
func (*GrpcServer) WithChecker ¶
func (g *GrpcServer) WithChecker(c checkerT) *GrpcServer
type RegisterCallback ¶
Click to show internal directories.
Click to hide internal directories.