Documentation
¶
Index ¶
- Constants
- type Cache
- type CacheEntry
- type ComposeContext
- type WebComponent
- type WebComposer
- func (WebComposer) CaddyModule() caddy.ModuleInfo
- func (w *WebComposer) Provision(ctx caddy.Context) error
- func (w WebComposer) ServeHTTP(rw http.ResponseWriter, r *http.Request, next caddyhttp.Handler) error
- func (w *WebComposer) UnmarshalCaddyfile(d *caddyfile.Dispenser) error
- func (w *WebComposer) Validate() error
- type WebSource
Constants ¶
View Source
const AttributeBodyKey = "data-webc-body"
View Source
const AttributeMethodKey = "data-webc-method"
View Source
const AttributeNameKey = "data-webc-name"
View Source
const AttributeUrlKey = "data-webc-url"
View Source
const GET = "get"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CacheEntry ¶
type CacheEntry struct {
// contains filtered or unexported fields
}
type ComposeContext ¶
type ComposeContext struct {
// contains filtered or unexported fields
}
type WebComponent ¶
type WebComponent struct {
// contains filtered or unexported fields
}
type WebComposer ¶
type WebComposer struct { MIMETypes []string `json:"mime_types,omitempty"` // contains filtered or unexported fields }
WebComposer is an example; put your own type here.
func (WebComposer) CaddyModule ¶
func (WebComposer) CaddyModule() caddy.ModuleInfo
CaddyModule returns the Caddy module information.
func (*WebComposer) Provision ¶
func (w *WebComposer) Provision(ctx caddy.Context) error
Provision implements caddy.Provisioner.
func (WebComposer) ServeHTTP ¶
func (w WebComposer) ServeHTTP(rw http.ResponseWriter, r *http.Request, next caddyhttp.Handler) error
ServeHTTP implements caddyhttp.MiddlewareHandler.
func (*WebComposer) UnmarshalCaddyfile ¶
func (w *WebComposer) UnmarshalCaddyfile(d *caddyfile.Dispenser) error
UnmarshalCaddyfile implements caddyfile.Unmarshaler.
func (*WebComposer) Validate ¶
func (w *WebComposer) Validate() error
Validate implements caddy.Validator.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.