grpc

package
v0.0.0-...-75c6eaf Latest Latest
Warning

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

Go to latest
Published: May 1, 2024 License: Apache-2.0 Imports: 21 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ClientOptions

func ClientOptions(options *istiokeepalive.Options, tlsOpts *TLSOptions) ([]grpc.DialOption, error)

ClientOptions returns consistent grpc dial options with custom dial options

func IsExpectedGRPCError

func IsExpectedGRPCError(err error) bool

IsExpectedGRPCError checks a gRPC error code and determines whether it is an expected error when things are operating normally. This is basically capturing when the client disconnects.

func ServerOptions

func ServerOptions(options *istiokeepalive.Options, interceptors ...grpc.UnaryServerInterceptor) []grpc.ServerOption

Types

type TLSOptions

type TLSOptions struct {
	RootCert      string
	Key           string
	Cert          string
	ServerAddress string
	SAN           string
}

TLSOptions include TLS options that a grpc client uses to connect with server.

Jump to

Keyboard shortcuts

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