grpc

package
v0.0.0-...-b804f52 Latest Latest
Warning

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

Go to latest
Published: Mar 3, 2023 License: MulanPSL-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ToheaderCarrier

func ToheaderCarrier(m metadata.MD) headerCarrier

func UnaryGrpcClientInterceptor

func UnaryGrpcClientInterceptor(timeout time.Duration, mid []endpoint.Middleware) grpc.UnaryClientInterceptor

func UnaryGrpcServerInterceptor

func UnaryGrpcServerInterceptor() grpc.UnaryServerInterceptor

Types

type Transport

type Transport struct {
	// contains filtered or unexported fields
}

Transport is a gRPC transport.

func NewTransport

func NewTransport(endpoint, operation string, reqHeader, replyHeader headerCarrier) *Transport

func (*Transport) Endpoint

func (tr *Transport) Endpoint() string

Endpoint returns the transport endpoint.

func (*Transport) Kind

func (tr *Transport) Kind() xtransport.Kind

Kind returns the transport kind.

func (*Transport) Operation

func (tr *Transport) Operation() string

Operation returns the transport operation.

func (*Transport) ReplyHeader

func (tr *Transport) ReplyHeader() xtransport.Header

ReplyHeader returns the reply header.

func (*Transport) RequestHeader

func (tr *Transport) RequestHeader() xtransport.Header

RequestHeader returns the request header.

Jump to

Keyboard shortcuts

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