lib

package
v2.0.0-beta10 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 18, 2019 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

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.

func (Execute) Freeze

func (r Execute) Freeze()

func (Execute) Hash

func (r Execute) Hash() (uint32, error)

func (*Execute) Run

func (r *Execute) Run(thread *starlark.Thread, fn *starlark.Builtin, args starlark.Tuple, kwargs []starlark.Tuple) (starlark.Value, error)

Run is the method bound to the starlark execute function.

func (Execute) String

func (r Execute) String() string

func (Execute) Truth

func (r Execute) Truth() starlark.Bool

func (Execute) Type

func (r Execute) Type() string

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL