Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GRPC ¶
type GRPC interface { // Report logs the result of an RPC call to a specified service. // // Since gRPC is not aware of middlewares, you can use the WrapGRPCCall function over your services, to // automatically log the result of each call. Report(service string, err error) }
func NewGRPC ¶
func NewGRPC(formatter formatters.Formatter) GRPC
type GRPCCallback ¶
func WrapGRPCCall ¶
func WrapGRPCCall[In any, Out any](service string, logger GRPC, callback GRPCCallback[In, Out]) GRPCCallback[In, Out]
WrapGRPCCall wraps a GRPCCallback callback with a GRPC logger. It also adds extra reporting that are not available to the base class, such as latency info.
type Gin ¶
type Gin interface {
Middleware() gin.HandlerFunc
}
Click to show internal directories.
Click to hide internal directories.