Documentation
¶
Overview ¶
Package log provides a logging middleware for client.
Index ¶
Constants ¶
View Source
const Name = "log"
Name is the middlewares name.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Middleware ¶
type Middleware struct {
// contains filtered or unexported fields
}
Middleware is the log Middleware for client.
func (*Middleware) Request ¶ added in v0.2.0
func (m *Middleware) Request( next client.MiddlewareRequestHandler, ) client.MiddlewareRequestHandler
Request wraps the original RequestNoCodec method or other middlewares.
func (*Middleware) Start ¶
func (m *Middleware) Start(_ context.Context) error
Start the component. E.g. connect to the broker.
func (*Middleware) Stop ¶
func (m *Middleware) Stop(_ context.Context) error
Stop the component. E.g. disconnect from the broker. The context will contain a timeout, and cancelation should be respected.
func (*Middleware) String ¶
func (m *Middleware) String() string
String returns the name of this middleware.
func (*Middleware) Type ¶
func (m *Middleware) Type() string
Type returns the component type, e.g. broker.
Click to show internal directories.
Click to hide internal directories.