Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
BaseModel
Params map[string]interface{} // 参数。自定义的配置参数
ComponentDict map[string]base.ConfigComponentInterface // 组件。组件名 => 配置
}
配置实例。用于封装配置
type Message ¶
type WebsocketSession ¶
type WebsocketSession struct {
BaseModel
// contains filtered or unexported fields
}
websocket 使用的 session 。没有发送的功能。必须依赖 WebsocketServer 进行发送
func NewWebsocketSession ¶
func NewWebsocketSession(conn *websocket.Conn) *WebsocketSession
新建websocket session
func (*WebsocketSession) GetSendMessage ¶
func (model *WebsocketSession) GetSendMessage() []byte
获取发送消息
Click to show internal directories.
Click to hide internal directories.