grpcx

package module
v0.0.0-...-57c4e34 Latest Latest
Warning

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

Go to latest
Published: Nov 12, 2020 License: Apache-2.0 Imports: 6 Imported by: 0

README

grpcx

chassix gRPC

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Close

func Close(conn *grpc.ClientConn)

func Dial

func Dial() (*grpc.ClientConn, error)

func Serve

func Serve(rsFN RegisterServerFunc)

Types

type GRPCClientConfig

type GRPCClientConfig struct {
	Addr     string
	Insecure bool
	Block    bool
	Timeout  time.Duration
}

func ClientConfig

func ClientConfig() GRPCClientConfig

type GRPCConfig

type GRPCConfig struct {
	Server GRPCServerConfig `yaml:"grpcs"`
	Client GRPCClientConfig `yaml:"grpcc"`
}

type GRPCServerConfig

type GRPCServerConfig struct {
	Port int
	Addr string
}

type RegisterServerFunc

type RegisterServerFunc func(server *grpc.Server)

Directories

Path Synopsis
examples

Jump to

Keyboard shortcuts

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