Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type WebSocketContext ¶
type WebSocketContext struct {
// contains filtered or unexported fields
}
func NewWebSocketContext ¶
func NewWebSocketContext(request WebSocketRequest, ws *websocket.Conn) *WebSocketContext
func (*WebSocketContext) Body ¶
func (ctx *WebSocketContext) Body() []byte
func (*WebSocketContext) Error ¶
func (ctx *WebSocketContext) Error(code int, err error)
func (*WebSocketContext) JSON ¶
func (ctx *WebSocketContext) JSON(code int, object interface{})
func (*WebSocketContext) Params ¶
func (ctx *WebSocketContext) Params() map[string]string
func (*WebSocketContext) Write ¶
func (ctx *WebSocketContext) Write(code int, response []byte)
type WebSocketErrorResponse ¶
type WebSocketErrorResponse struct { Status int `json:"status"` Errors []jakiro.ContextError `json:"errors"` }
type WebSocketRequest ¶
type WebSocketResponse ¶
Click to show internal directories.
Click to hide internal directories.