Versions in this module Expand all Collapse all v0 v0.1.0 Jun 2, 2021 Changes in this version + type Action func(app.Context) (interface{}, error) + type Hook interface + SetError func(*error) Hook + SetResult func(interface{}) Hook + Use func(composer app.Composer, ctx app.Context) + func NewHook(act Action) Hook + type Proxy struct + PathPrefix string + TargetAddr *url.URL + func NewProxy(target, prefix string) *Proxy + func (proxy *Proxy) ServeHTTP(w http.ResponseWriter, r *http.Request) + type Request struct — js/wasm + Body interface{} + Headers map[string]string + Method string + Result interface{} + Url string + func Req() *Request + func (request *Request) Context() context.Context + func (request *Request) Execute(method, url string) (interface{}, error) + func (request *Request) Get(url string) (interface{}, error) + func (request *Request) SetBody(body interface{}) *Request + func (request *Request) SetContext(ctx context.Context) *Request + func (request *Request) SetHeader(key, value string) *Request + func (request *Request) SetResult(v interface{}) *Request