Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ReqLogger ¶
type ReqLogger struct {
// contains filtered or unexported fields
}
func NewReqLogger ¶
func NewReqLogger(opts ...ReqLoggerOpt) *ReqLogger
type ReqLoggerOpt ¶
type ReqLoggerOpt func(*ReqLogger)
func WithLogger ¶
func WithLogger(logger Logger) ReqLoggerOpt
type RespCompressor ¶
type RespCompressor struct {
// contains filtered or unexported fields
}
func NewRespCompressor ¶
func NewRespCompressor(opts ...RespCompressorOpt) *RespCompressor
func (*RespCompressor) ServeHTTP ¶
func (mw *RespCompressor) ServeHTTP(rw http.ResponseWriter, req *http.Request)
type RespCompressorOpt ¶
type RespCompressorOpt func(*RespCompressor)
func WithDeflate ¶
func WithDeflate(level int) RespCompressorOpt
func WithGZip ¶
func WithGZip(level int) RespCompressorOpt
Click to show internal directories.
Click to hide internal directories.