Documentation ¶
Index ¶
- func BadRequest() (interface{}, int, error)
- func Int32Param(name string, req *http.Request) (int32, error)
- func Int64Param(name string, req *http.Request) (int64, error)
- func Int64QueryParam(name string, req *http.Request) (int64, error)
- type Action
- type AssetHandler
- type CtxMux
- type EventsSearchController
- type TopicsController
- func (c *TopicsController) DownloadMessage(ctx *WebContext, w http.ResponseWriter, req *http.Request) (interface{}, int, error)
- func (c *TopicsController) FetchMessage(ctx *WebContext, w http.ResponseWriter, req *http.Request) (interface{}, int, error)
- func (c *TopicsController) Register(mux *CtxMux)
- type WebContext
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BadRequest ¶
Types ¶
type Action ¶
type Action struct { *WebContext Apply func(*WebContext, http.ResponseWriter, *http.Request) (interface{}, int, error) }
type AssetHandler ¶
type AssetHandler struct {
// contains filtered or unexported fields
}
func NewAssetHandler ¶
func NewAssetHandler(root http.FileSystem, asset string) *AssetHandler
func (*AssetHandler) ServeHTTP ¶
func (f *AssetHandler) ServeHTTP(w http.ResponseWriter, r *http.Request)
type CtxMux ¶
type CtxMux struct { *goji.Mux *WebContext }
func NewMux ¶
func NewMux(c *WebContext) *CtxMux
type EventsSearchController ¶
type EventsSearchController struct { }
func (*EventsSearchController) Register ¶
func (c *EventsSearchController) Register(mux *CtxMux)
func (*EventsSearchController) SearchMessages ¶
func (c *EventsSearchController) SearchMessages(ctx *WebContext, w http.ResponseWriter, req *http.Request) (interface{}, int, error)
type TopicsController ¶
type TopicsController struct { }
func (*TopicsController) DownloadMessage ¶
func (c *TopicsController) DownloadMessage(ctx *WebContext, w http.ResponseWriter, req *http.Request) (interface{}, int, error)
func (*TopicsController) FetchMessage ¶
func (c *TopicsController) FetchMessage(ctx *WebContext, w http.ResponseWriter, req *http.Request) (interface{}, int, error)
func (*TopicsController) Register ¶
func (c *TopicsController) Register(mux *CtxMux)
type WebContext ¶
func NewWebContext ¶
func NewWebContext(engine *engine.Engine) *WebContext
func (*WebContext) Start ¶
func (ctx *WebContext) Start(cfg *engine.Config)
func (*WebContext) Stop ¶
func (ctx *WebContext) Stop()
Click to show internal directories.
Click to hide internal directories.