Documentation
¶
Index ¶
- type Execute
- type LoadMiddleware
- func (r LoadMiddleware) Freeze()
- func (r LoadMiddleware) Hash() (uint32, error)
- func (r *LoadMiddleware) Run(thread *starlark.Thread, fn *starlark.Builtin, args starlark.Tuple, ...) (starlark.Value, error)
- func (r LoadMiddleware) String() string
- func (r LoadMiddleware) Truth() starlark.Bool
- func (r LoadMiddleware) Type() string
- type LoadResponder
- func (r LoadResponder) Freeze()
- func (r LoadResponder) Hash() (uint32, error)
- func (r *LoadResponder) Run(thread *starlark.Thread, fn *starlark.Builtin, args starlark.Tuple, ...) (starlark.Value, error)
- func (r LoadResponder) String() string
- func (r LoadResponder) Truth() starlark.Bool
- func (r LoadResponder) Type() string
- type Middleware
- type ResponderModule
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Execute ¶
type Execute struct {
Modules []Middleware
}
Execute represents the method exposed to starlark to build a middleware chain.
type LoadMiddleware ¶
type LoadMiddleware struct { Middleware Middleware Ctx caddy.Context }
LoadMiddleware represents the method exposed to starlark to load a Caddy module.
func (LoadMiddleware) Freeze ¶
func (r LoadMiddleware) Freeze()
func (LoadMiddleware) Hash ¶
func (r LoadMiddleware) Hash() (uint32, error)
func (*LoadMiddleware) Run ¶
func (r *LoadMiddleware) Run(thread *starlark.Thread, fn *starlark.Builtin, args starlark.Tuple, kwargs []starlark.Tuple) (starlark.Value, error)
Run is the method bound to the starlark loadMiddleware function.
func (LoadMiddleware) String ¶
func (r LoadMiddleware) String() string
func (LoadMiddleware) Truth ¶
func (r LoadMiddleware) Truth() starlark.Bool
func (LoadMiddleware) Type ¶
func (r LoadMiddleware) Type() string
type LoadResponder ¶
type LoadResponder struct { Module ResponderModule Ctx caddy.Context }
LoadResponder represents the method exposed to starlark to load a Caddy middleware responder.
func (LoadResponder) Freeze ¶
func (r LoadResponder) Freeze()
func (LoadResponder) Hash ¶
func (r LoadResponder) Hash() (uint32, error)
func (*LoadResponder) Run ¶
func (r *LoadResponder) Run(thread *starlark.Thread, fn *starlark.Builtin, args starlark.Tuple, kwargs []starlark.Tuple) (starlark.Value, error)
Run is the method bound to the starlark loadResponder function.
func (LoadResponder) String ¶
func (r LoadResponder) String() string
func (LoadResponder) Truth ¶
func (r LoadResponder) Truth() starlark.Bool
func (LoadResponder) Type ¶
func (r LoadResponder) Type() string
type Middleware ¶
type Middleware struct { Name string Cfg json.RawMessage Instance caddyhttp.MiddlewareHandler }
Middleware represents a module that satisfies the starlark Value interface.
func (Middleware) Freeze ¶
func (r Middleware) Freeze()
func (Middleware) Hash ¶
func (r Middleware) Hash() (uint32, error)
func (Middleware) String ¶
func (r Middleware) String() string
func (Middleware) Truth ¶
func (r Middleware) Truth() starlark.Bool
func (Middleware) Type ¶
func (r Middleware) Type() string
type ResponderModule ¶
type ResponderModule struct { Name string Cfg json.RawMessage Instance caddyhttp.Handler }
ResponderModule represents a module that satisfies the caddyhttp handler.
func (ResponderModule) Freeze ¶
func (r ResponderModule) Freeze()
func (ResponderModule) Hash ¶
func (r ResponderModule) Hash() (uint32, error)
func (ResponderModule) String ¶
func (r ResponderModule) String() string
func (ResponderModule) Truth ¶
func (r ResponderModule) Truth() starlark.Bool
func (ResponderModule) Type ¶
func (r ResponderModule) Type() string
Click to show internal directories.
Click to hide internal directories.