Documentation
¶
Index ¶
Constants ¶
View Source
const ApplicationJson = "application/json"
View Source
const ApplicationUrlencoded = "application/x-www-form-urlencoded"
View Source
const ContentType = "Content-Type"
View Source
const EXT = "Ext"
View Source
const GETPARAMS = "GetParams"
View Source
const HEART = "heart"
View Source
const ORDER = "Order"
View Source
const OTHER = "other"
View Source
const POSTPARAMS = "PostParams"
View Source
const RESULT = "Result"
View Source
const STATUS = "Status"
View Source
const TAG = "TAG"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Context ¶
func NewContext ¶
type HandlerFunc ¶
type HandlerFunc func(*Context)
type WebSocketServices ¶
type WebSocketServices struct {
// contains filtered or unexported fields
}
func InitSocketService ¶
func InitSocketService() *WebSocketServices
func (*WebSocketServices) AddGETService ¶
func (w *WebSocketServices) AddGETService(key string, call HandlerFunc)
func (*WebSocketServices) AddPOSTService ¶
func (w *WebSocketServices) AddPOSTService(key string, call HandlerFunc)
func (*WebSocketServices) EchoHandler ¶
func (w *WebSocketServices) EchoHandler(ws *websocket.Conn)
{ "GetParams":"op=getTicket", "PostParams":{ "time":123456 } }
func (*WebSocketServices) SetMainRouter ¶
func (w *WebSocketServices) SetMainRouter(mainRouter string)
Click to show internal directories.
Click to hide internal directories.