client

package
v0.0.0-...-74c00de Latest Latest
Warning

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

Go to latest
Published: Apr 16, 2020 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewClientConnection

func NewClientConnection(cfg *Config, customOpts ...grpc.DialOption) (*grpc.ClientConn, error)

NewClientConnection create a new gRPC client

Types

type Config

type Config struct {
	Host         string `toml:"host"`
	Port         int    `toml:"port"`
	TLS          bool   `toml:"tls_on"`
	CaFile       string `toml:"ca_file"`
	HostOverride string `toml:"host_override"`
}

Config config of gRPC client connect

func DefaultConfig

func DefaultConfig() *Config

DefaultConfig get a default config

Jump to

Keyboard shortcuts

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