Versions in this module Expand all Collapse all v1 v1.0.1 Jan 4, 2020 v1.0.0 Dec 15, 2019 Changes in this version + func GorillaParams(next http.Handler) http.Handler + func Modules(f func(alias string, module Module) bool) + func Register(alias string, module Module) + type BaseModule struct + func NewBaseModule() *BaseModule + func (m *BaseModule) Controllers(f func(string, Controller) bool) + func (m *BaseModule) Register(name string, resource Controller) error + func (m *BaseModule) Unregister(name string) error + type Controller interface + Init func() error + type Handler interface + Map func(interface{}) inject.TypeMapper + Use func(string, Module) error + func NewHandler() Handler + type Methods []string + func (ms *Methods) Add(method string) + func (ms *Methods) Empty() bool + func (ms *Methods) Join() string + type Module interface + Controllers func(func(alias string, controller Controller) bool) + Register func(alias string, controller Controller) error + Unregister func(alias string) error + type Params map[string]string + func ParamsFromContext(ctx context.Context) Params + type PluralDeleter interface + DeleteAll func(ctx context.Context, params url.Values) (interface{}, error) + type PluralGetter interface + GetAll func(ctx context.Context, params url.Values) (interface{}, error) + type PluralPatcher interface + PatchAll func(ctx context.Context, params url.Values, f func(v interface{}) error) (interface{}, error) + type PluralPoster interface + PostAll func(ctx context.Context, f func(v interface{}) error) (interface{}, error) + type PluralPutter interface + PutAll func(ctx context.Context, params url.Values, f func(v interface{}) error) (interface{}, error) + type SingleDeleter interface + Delete func(ctx context.Context, pk string) (interface{}, error) + type SingleGetter interface + Get func(ctx context.Context, pk string) (interface{}, error) + type SinglePatcher interface + Patch func(ctx context.Context, pk string, f func(v interface{}) error) (interface{}, error) + type SinglePoster interface + Post func(ctx context.Context, f func(v interface{}) error) (interface{}, error) + type SinglePutter interface + Put func(ctx context.Context, pk string, f func(v interface{}) error) (interface{}, error)