Documentation
¶
Overview ¶
Package server provides network listeners, e.g. an HTTP (web/REST/JSON) server.
Index ¶
- func CreateJWT(username string, ttl int, secret string) (string, error)
- func GetSid(hdr http.Header) (sid string)
- func ParseJWT(tk, secret string) (jwt.Claims, error)
- func Route(ctx *b.Context, spec m.Map, hdlr RqHandler, req *http.Request, ...)
- func SetSid(hdr http.Header, sid string)
- type RqActionHandler
- type RqHandler
- type ServerState
- type Session
- type Sessions
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type RqActionHandler ¶
type RqActionHandler = func(*b.Context, m.Map, *b.Message, *http.Request, http.ResponseWriter, *Session)
func GetActionHandler ¶
type ServerState ¶ added in v0.1.8
func (*ServerState) GetSessionMailbox ¶ added in v0.1.8
func (st *ServerState) GetSessionMailbox(sid string) chan b.Message
Click to show internal directories.
Click to hide internal directories.