handlers

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Jul 22, 2019 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Intercept

func Intercept(handler roboot.Handler, filters ...roboot.Filter) roboot.Handler

func Wrap

func Wrap(b interface{}, wrapper ...func(interface{}) roboot.Handler) roboot.Handler

Types

type ActionHandler

type ActionHandler interface {
	Query(*roboot.Context)
	Create(*roboot.Context)
	Delete(*roboot.Context)
	Update(*roboot.Context)
	CreateOrUpdate(*roboot.Context)
	Head(*roboot.Context)
	Options(*roboot.Context)
	Trace(*roboot.Context)
	Connect(*roboot.Context)
}

type Fs

type Fs struct {
	Static bool
	Path   string

	AllowDir bool
	PathVar  string
}

func (*Fs) Handle

func (f *Fs) Handle(ctx *roboot.Context)

type MethodHandler

type MethodHandler interface {
	Get(*roboot.Context)
	Post(*roboot.Context)
	Delete(*roboot.Context)
	Patch(*roboot.Context)
	Put(*roboot.Context)
	Options(*roboot.Context)
	Head(*roboot.Context)
	Trace(*roboot.Context)
	Connect(*roboot.Context)
}

type Methods

type Methods map[string]roboot.HandlerFunc

func (Methods) Handle

func (m Methods) Handle(ctx *roboot.Context)

type NopActionHandler

type NopActionHandler struct {
}

func (NopActionHandler) Connect

func (NopActionHandler) Connect(ctx *roboot.Context)

func (NopActionHandler) Create

func (NopActionHandler) Create(ctx *roboot.Context)

func (NopActionHandler) CreateOrUpdate

func (NopActionHandler) CreateOrUpdate(ctx *roboot.Context)

func (NopActionHandler) Delete

func (NopActionHandler) Delete(ctx *roboot.Context)

func (NopActionHandler) Head

func (NopActionHandler) Head(ctx *roboot.Context)

func (NopActionHandler) Options

func (NopActionHandler) Options(ctx *roboot.Context)

func (NopActionHandler) Query

func (NopActionHandler) Query(ctx *roboot.Context)

func (NopActionHandler) Trace

func (NopActionHandler) Trace(ctx *roboot.Context)

func (NopActionHandler) Update

func (NopActionHandler) Update(ctx *roboot.Context)

type NopMethodHandler

type NopMethodHandler struct {
}

func (NopMethodHandler) Connect

func (NopMethodHandler) Connect(ctx *roboot.Context)

func (NopMethodHandler) Delete

func (NopMethodHandler) Delete(ctx *roboot.Context)

func (NopMethodHandler) Get

func (NopMethodHandler) Get(ctx *roboot.Context)

func (NopMethodHandler) Head

func (NopMethodHandler) Head(ctx *roboot.Context)

func (NopMethodHandler) Options

func (NopMethodHandler) Options(ctx *roboot.Context)

func (NopMethodHandler) Patch

func (NopMethodHandler) Patch(ctx *roboot.Context)

func (NopMethodHandler) Post

func (NopMethodHandler) Post(ctx *roboot.Context)

func (NopMethodHandler) Put

func (NopMethodHandler) Put(ctx *roboot.Context)

func (NopMethodHandler) Trace

func (NopMethodHandler) Trace(ctx *roboot.Context)

type Status

type Status int

func (Status) Handle

func (s Status) Handle(ctx *roboot.Context)

Jump to

Keyboard shortcuts

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