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, }), }
ClientOptions grpc client options
Functions ¶
func NewClient ¶
func NewClient(host string, port int) (*grpc.ClientConn, error)
NewClient new grpc client
func NewTLSClient ¶
NewTLSClient new grpc tls cliet
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.