adapters

package
v0.0.0-...-3b26d93 Latest Latest
Warning

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

Go to latest
Published: Apr 5, 2024 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	NoGrpcDialOptions = []grpc.DialOption{}
	NoGrpcConfigurer  = func(conn *grpc.ClientConn) {}
)

Functions

func GrpcInsecureClient

func GrpcInsecureClient(name, host, port string, dopts []grpc.DialOption, configurer GrpcClientConfigurer) (*grpc.ClientConn, error)

func GrpcMtlsClient

func GrpcMtlsClient(name, serverName, host, port string, dopts []grpc.DialOption,
	configurer GrpcClientConfigurer) (*grpc.ClientConn, error)

func StartGrpcMtlsServer

func StartGrpcMtlsServer(name, serverName, host, port string,
	sopts []grpc.ServerOption, configure GrpcAdapterConfigurer)

func StartGrpcServer

func StartGrpcServer(name, host, port string, sopts []grpc.ServerOption,
	configure GrpcAdapterConfigurer)

Types

type GrpcAdapterConfigurer

type GrpcAdapterConfigurer func(server *grpc.Server)

type GrpcClientConfigurer

type GrpcClientConfigurer func(conn *grpc.ClientConn)

Jump to

Keyboard shortcuts

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