Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type StarlarkMW ¶
type StarlarkMW struct { Script string `json:"script"` // contains filtered or unexported fields }
StarlarkMW represents a middleware responder written in starlark
func (StarlarkMW) CaddyModule ¶
func (StarlarkMW) CaddyModule() caddy.ModuleInfo
CaddyModule returns the Caddy module information.
func (*StarlarkMW) Cleanup ¶
func (s *StarlarkMW) Cleanup() error
Cleanup cleans up any modules loaded during the creation of a starlark route.
func (*StarlarkMW) Provision ¶
func (s *StarlarkMW) Provision(ctx caddy.Context) error
Provision sets up the starlark env.
func (*StarlarkMW) ServeHTTP ¶
func (s *StarlarkMW) ServeHTTP(w http.ResponseWriter, r *http.Request) error
ServeHTTP responds to an http request with starlark.
Click to show internal directories.
Click to hide internal directories.