grpc

package
v1.4.0 Latest Latest
Warning

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

Go to latest
Published: Apr 20, 2024 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LoggingInterceptor

func LoggingInterceptor(logger Logger) grpc.UnaryServerInterceptor

Types

type Logger added in v1.1.1

type Logger interface {
	Info(args ...interface{})
}

type RPCLog

type RPCLog struct {
	ID           string `json:"id"`
	StartTime    string `json:"startTime"`
	ResponseTime int64  `json:"responseTime"`
	Method       string `json:"method"`
	StatusCode   int32  `json:"statusCode"`
}

func (RPCLog) PrettyPrint added in v1.4.0

func (l RPCLog) PrettyPrint(writer io.Writer)

func (RPCLog) String

func (l RPCLog) String() string

Jump to

Keyboard shortcuts

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