Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ToStatusError ¶
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 ¶
func (i *LoggingInterceptor) Stream() grpc.StreamServerInterceptor
Stream creates a stream server interceptor for request logging.
func (*LoggingInterceptor) Unary ¶
func (i *LoggingInterceptor) Unary() grpc.UnaryServerInterceptor
Unary creates a unary server interceptor for request logging.
Click to show internal directories.
Click to hide internal directories.