Documentation ¶
Index ¶
Constants ¶
View Source
const ( AnyName = "*" DefaultName = "compress" GzipName = "gzip" DeflateName = "deflate" BrotliName = "br" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BrotliCompressor ¶
type BrotliCompressor struct {
// contains filtered or unexported fields
}
func (*BrotliCompressor) Compress ¶
func (b *BrotliCompressor) Compress(p []byte) (out []byte, err error)
func (*BrotliCompressor) Name ¶
func (b *BrotliCompressor) Name() string
type Compressor ¶
type DeflateCompressor ¶
type DeflateCompressor struct {
// contains filtered or unexported fields
}
func (*DeflateCompressor) Compress ¶
func (d *DeflateCompressor) Compress(p []byte) (out []byte, err error)
func (*DeflateCompressor) Name ¶
func (d *DeflateCompressor) Name() string
type GzipCompressor ¶
type GzipCompressor struct {
// contains filtered or unexported fields
}
func (*GzipCompressor) Compress ¶
func (g *GzipCompressor) Compress(p []byte) (out []byte, err error)
func (*GzipCompressor) Name ¶
func (g *GzipCompressor) Name() string
type KindWeight ¶
type KindWeight struct {
// contains filtered or unexported fields
}
type KindWeights ¶
type KindWeights []KindWeight
func (KindWeights) Len ¶
func (k KindWeights) Len() int
func (KindWeights) Less ¶
func (k KindWeights) Less(i, j int) bool
func (KindWeights) Swap ¶
func (k KindWeights) Swap(i, j int)
type Middleware ¶
type Middleware struct {
// contains filtered or unexported fields
}
func (*Middleware) Close ¶
func (middle *Middleware) Close()
func (*Middleware) Construct ¶
func (middle *Middleware) Construct(options transports.MiddlewareOptions) error
func (*Middleware) Handler ¶
func (middle *Middleware) Handler(next transports.Handler) transports.Handler
func (*Middleware) Name ¶
func (middle *Middleware) Name() string
type ResponseWriter ¶
type ResponseWriter struct { transports.ResponseWriter // contains filtered or unexported fields }
func (*ResponseWriter) Failed ¶
func (w *ResponseWriter) Failed(cause error)
func (*ResponseWriter) Succeed ¶
func (w *ResponseWriter) Succeed(v interface{})
Click to show internal directories.
Click to hide internal directories.