grpc

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: May 12, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrConnClosed = internal.ErrConnClosed

ErrConnClosed send when grpc is closed

Functions

func AddMetaToOutgoingStreamInterceptor

func AddMetaToOutgoingStreamInterceptor(kv ...string) grpc.StreamClientInterceptor

AddMetaToOutgoingStreamInterceptor - specifies fixed headers for every rpc as kv array

func AddMetaToOutgoingUnaryInterceptor

func AddMetaToOutgoingUnaryInterceptor(kv ...string) grpc.UnaryClientInterceptor

AddMetaToOutgoingUnaryInterceptor - specifies fixed headers for every rpc as kv array

func WithErrorWrapper

func WithErrorWrapper(c grpc.ClientConnInterface, serviceNamePrefix string) grpc.ClientConnInterface

WithErrorWrapper ...

Types

type Closable

type Closable interface {
	CloseConn() error
}

Closable is closable connect

type ClosableClientConnInterface

type ClosableClientConnInterface interface {
	grpc.ClientConnInterface
	Closable
}

ClosableClientConnInterface grpc client conn interface with close ability

func MakeCloseable

MakeCloseable ...

type HostNamePropagator

type HostNamePropagator string

HostNamePropagator add host name into outgoing metadata

func (HostNamePropagator) ClientStream

ClientStream stream client interceptor

func (HostNamePropagator) ClientUnary

ClientUnary unary client interceptor

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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