Documentation
¶
Overview ¶
Package plugindemo a demo plugin.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type BodyWrapper ¶
type BodyWrapper struct {
// contains filtered or unexported fields
}
func NewBodyWrapper ¶
func NewBodyWrapper(body io.ReadCloser) *BodyWrapper
func (*BodyWrapper) Close ¶
func (b *BodyWrapper) Close() error
type Config ¶
Config the plugin configuration.
func CreateConfig ¶
func CreateConfig() *Config
CreateConfig creates the default plugin configuration.
type Demo ¶
type Demo struct {
WID string
// contains filtered or unexported fields
}
Demo a Demo plugin.
type ResponseWriterWrapper ¶
type ResponseWriterWrapper struct {
// contains filtered or unexported fields
}
func NewResponseWritrWrapper ¶
func NewResponseWritrWrapper(rw http.ResponseWriter) *ResponseWriterWrapper
func (*ResponseWriterWrapper) Flush ¶
func (r *ResponseWriterWrapper) Flush()
Flush sends any buffered data to the client.
func (*ResponseWriterWrapper) Header ¶
func (r *ResponseWriterWrapper) Header() http.Header
func (*ResponseWriterWrapper) Hijack ¶
func (r *ResponseWriterWrapper) Hijack() (net.Conn, *bufio.ReadWriter, error)
Hijack hijacks the connection.
func (*ResponseWriterWrapper) WriteHeader ¶
func (r *ResponseWriterWrapper) WriteHeader(statusCode int)
Click to show internal directories.
Click to hide internal directories.