Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ChannelContext ¶
type ChannelContext struct { mojito.WebSocketContext Channel *string Payload json.RawMessage }
func (*ChannelContext) Read ¶
func (ctx *ChannelContext) Read(out interface{}) error
func (*ChannelContext) Send ¶
func (ctx *ChannelContext) Send(data interface{}) error
type Message ¶
type Message struct { Channel *string `json:"channel"` Error string `json:"error,omitempty"` Payload json.RawMessage `json:"payload"` }
type WebSocket ¶
type WebSocket struct {
// contains filtered or unexported fields
}
func (*WebSocket) WithAsyncChannel ¶
func (*WebSocket) WithCatchAll ¶
func (*WebSocket) WithChannel ¶
Click to show internal directories.
Click to hide internal directories.