psrpc

package
v1.9.9 Latest Latest
Warning

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

Go to latest
Published: Feb 8, 2024 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckCompilerVersion added in v1.8.0

func CheckCompilerVersion(path string) error

func WithClientLogger

func WithClientLogger(logger logger.Logger) psrpc.ClientOption

func WithServerLogger

func WithServerLogger(logger logger.Logger) psrpc.ServerOption

func WithSuppressClientErrors added in v1.8.1

func WithSuppressClientErrors(errs ...error) psrpc.ClientOption

func WithSuppressServerErrors added in v1.8.1

func WithSuppressServerErrors(errs ...error) psrpc.ServerOption

Types

type UnimplementedMetricsObserver added in v1.8.0

type UnimplementedMetricsObserver struct{}

func (UnimplementedMetricsObserver) OnMultiRequest added in v1.8.0

func (o UnimplementedMetricsObserver) OnMultiRequest(role middleware.MetricRole, rpcInfo psrpc.RPCInfo, duration time.Duration, responseCount int, errorCount int)

func (UnimplementedMetricsObserver) OnStreamClose added in v1.8.0

func (o UnimplementedMetricsObserver) OnStreamClose(role middleware.MetricRole, rpcInfo psrpc.RPCInfo)

func (UnimplementedMetricsObserver) OnStreamOpen added in v1.8.0

func (o UnimplementedMetricsObserver) OnStreamOpen(role middleware.MetricRole, rpcInfo psrpc.RPCInfo)

func (UnimplementedMetricsObserver) OnStreamRecv added in v1.8.0

func (o UnimplementedMetricsObserver) OnStreamRecv(role middleware.MetricRole, rpcInfo psrpc.RPCInfo, err error)

func (UnimplementedMetricsObserver) OnStreamSend added in v1.8.0

func (o UnimplementedMetricsObserver) OnStreamSend(role middleware.MetricRole, rpcInfo psrpc.RPCInfo, duration time.Duration, err error)

func (UnimplementedMetricsObserver) OnUnaryRequest added in v1.8.0

func (o UnimplementedMetricsObserver) OnUnaryRequest(role middleware.MetricRole, rpcInfo psrpc.RPCInfo, duration time.Duration, err error)

Jump to

Keyboard shortcuts

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