adapters

package
v0.0.0-...-d9b5379 Latest Latest
Warning

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

Go to latest
Published: Nov 26, 2022 License: Apache-2.0 Imports: 11 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)

func StartMessagingListener

func StartMessagingListener(topic, group string, handler MessagingHandlerFunc) (<-chan bool, error)

Types

type GrpcAdapterConfigurer

type GrpcAdapterConfigurer func(server *grpc.Server)

type GrpcClientConfigurer

type GrpcClientConfigurer func(conn *grpc.ClientConn)

type MessagingHandlerFunc

type MessagingHandlerFunc func(data []byte) error

Jump to

Keyboard shortcuts

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