Documentation ¶
Index ¶
- Variables
- type AssetsDefinition
- type Context
- type Handler
- type HeadlessAssetsDefinition
- type LowLevelDefinition
- type PermanentRedirect
- type RawData
- type RawRouteDefinition
- type RawStream
- type Redirect
- type RouteAuthHandler
- type RouteDefinition
- type Service
- type TemporaryRedirect
- type Variables
- type WebSocketDefinition
- type WebSocketHandler
Constants ¶
This section is empty.
Variables ¶
Functions ¶
This section is empty.
Types ¶
type AssetsDefinition ¶
type Context ¶
type Context interface { HandleWith(handler Handler) error HandleAuth(Handler) error HandleCleanup(Handler) error Request() *http.Request Writer() http.ResponseWriter ParseBody(obj interface{}) error RawResponse() bool SetRawResponse(val bool) Variables() map[string]interface{} SetVariable(key string, val interface{}) Body() []byte SetBody([]byte) GetStringVariable(key string) (string, error) GetStringArrayVariable(key string) ([]string, error) GetStringMapVariable(key string) (map[string]interface{}, error) GetIntVariable(key string) (int, error) }
type LowLevelDefinition ¶
type PermanentRedirect ¶
type PermanentRedirect Redirect
type RawRouteDefinition ¶
type RawStream ¶
type RawStream struct { ContentType string Stream io.ReadCloser }
type RouteAuthHandler ¶
type RouteDefinition ¶
type Service ¶
type Service interface { Context() context.Context Start() Stop() Wait() error Error() error /********************************/ GET(*RouteDefinition) PUT(*RouteDefinition) POST(*RouteDefinition) DELETE(*RouteDefinition) PATCH(*RouteDefinition) ALL(*RouteDefinition) Raw(*RawRouteDefinition) *mux.Route LowLevel(*LowLevelDefinition) *mux.Route WebSocket(*WebSocketDefinition) ServeAssets(*AssetsDefinition) AssetHandler(*HeadlessAssetsDefinition, Context) (interface{}, error) LowLevelAssetHandler(*HeadlessAssetsDefinition, http.ResponseWriter, *http.Request) error GetListenAddress() (*url.URL, error) }
type TemporaryRedirect ¶
type TemporaryRedirect Redirect
type WebSocketDefinition ¶
type WebSocketDefinition struct { Host string Path string Vars Variables Scope []string Auth RouteAuthHandler NewHandler func(ctx Context, conn *websocket.Conn) WebSocketHandler }
type WebSocketHandler ¶
type WebSocketHandler interface { In() Out() }
Click to show internal directories.
Click to hide internal directories.