Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SendHttpResponseMessage ¶
func SendHttpResponseMessage(channel chan HandlerResponseMessage, header http.Header, status int, body interface{})
Send HTTP Response to HTTP handler thread through HTTP channel, args[0] is response payload and args[1:] is Additional Value
Types ¶
type HandlerMessage ¶
type HandlerMessage struct { Event Event HTTPRequest *http_wrapper.Request ResponseChan chan HandlerResponseMessage // return Http response Value interface{} // input/request value }
func NewHandlerMessage ¶
func NewHandlerMessage(event Event, httpRequest *http_wrapper.Request) (msg HandlerMessage)
type HandlerResponseMessage ¶
type HandlerResponseMessage struct {
HTTPResponse *http_wrapper.Response
}
type HttpResponseMessageType ¶
type HttpResponseMessageType string
Click to show internal directories.
Click to hide internal directories.