client

package
v0.0.0-...-5431711 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 17, 2019 License: Apache-2.0 Imports: 12 Imported by: 0

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 InitGrpcClientOptions

func InitGrpcClientOptions()

InitGrpcClientOptions init

func NewClient

func NewClient(host string, port int) (*grpc.ClientConn, error)

NewClient new grpc client

func NewTLSClient

func NewTLSClient(host string, port int, tlsConfig *tls.Config) (*grpc.ClientConn, error)

NewTLSClient new grpc tls cliet

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL