grpchelper

package
v0.2.16 Latest Latest
Warning

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

Go to latest
Published: Aug 16, 2022 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ToStatusError

func ToStatusError(err error) error

ToStatusError returns a status.Error from the given logic error. If an error occurs while executing logic in API handler, gRPC status.error should be returned so that the client can know more about the status of the request.

Types

type LoggingInterceptor

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

LoggingInterceptor is an interceptor for request logging.

func NewLoggingInterceptor

func NewLoggingInterceptor() *LoggingInterceptor

NewLoggingInterceptor creates a new instance of LoggingInterceptor.

func (*LoggingInterceptor) Stream

Stream creates a stream server interceptor for request logging.

func (*LoggingInterceptor) Unary

Unary creates a unary server interceptor for request logging.

Jump to

Keyboard shortcuts

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