Documentation
¶
Overview ¶
Package server provides network listeners, e.g. an HTTP (web/REST/JSON) server.
Index ¶
- func AddSid(hdr *http.Header, sid string)
- func Authenticate(ctx *b.Context, spec m.Map, msg b.Message, req *http.Request) bool
- func DefaultAction(ctx *b.Context, spec m.Map, msg b.Message, rsp http.ResponseWriter, ...)
- func DoneHandler(ctx *b.Context) (loop bool)
- func GetSid(hdrp *http.Header) string
- func LoginAction(ctx *b.Context, spec m.Map, msg b.Message, rsp http.ResponseWriter, ...)
- func PollAction(ctx *b.Context, spec m.Map, pollmsg b.Message, rsp http.ResponseWriter, ...)
- func Route(ctx *b.Context, rsp http.ResponseWriter, req *http.Request)
- func StartServer(ctx *b.Context)
- func SyncAction(ctx *b.Context, spec m.Map, msg b.Message, rsp http.ResponseWriter, ...)
- type RqActionHandler
- type ServerState
- type Session
- type Sessions
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Authenticate ¶
func DefaultAction ¶
func DoneHandler ¶
func LoginAction ¶ added in v0.1.8
func PollAction ¶
func StartServer ¶
Types ¶
type RqActionHandler ¶
type RqActionHandler = func( *b.Context, m.Map, b.Message, http.ResponseWriter, *http.Request, string)
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.