Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateResponseJson ¶
Types ¶
type Context ¶
type Context struct { Logger logging.Logger Context context.Context Session *common.AuthSession // Connection *websocket.Conn Mutex *sync.Mutex Write func([]byte) error WriteJSON func(interface{}) error OnDisconnectFn func() error }
func (Context) OnDisconnect ¶
type MessageType ¶
type MessageType string
const ( MessageTypeError MessageType = "error" MessageTypeResponse MessageType = "response" MessageTypeInfo MessageType = "info" MessageTypeWarning MessageType = "warning" )
Click to show internal directories.
Click to hide internal directories.