grpcutils

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: May 24, 2021 License: BSD-2-Clause Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewGRPCServer

func NewGRPCServer(config GRPCServerConfig) *grpc.Server

NewGRPCServer returns grpc.Server objects, optionally configured for TLS.

func RunGRPCServer

func RunGRPCServer(grpcAddress string, grpcServer *grpc.Server)

RunGRPCServer listens on the given address and serves the given *grpc.Server, and blocks until done.

Types

type GRPCServerConfig added in v0.4.0

type GRPCServerConfig struct {
	TLSDisable      bool
	TLSCert         string
	TLSKey          string
	TimeoutSeconds  int
	MaxRequestBytes int
}

GRPCServerConfig provides server configuration parameters for creating a GRPC server (see NewGRPCServer).

Jump to

Keyboard shortcuts

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