Documentation ¶
Overview ¶
Package singlesub
Index ¶
- type Manage
- func (m *Manage) AddGroup(groupName string, w http.ResponseWriter, r *http.Request) error
- func (m *Manage) AddGroupWithExt(groupName string, w http.ResponseWriter, r *http.Request, ...) error
- func (m *Manage) MsgSub() error
- func (m *Manage) SendMsg(groupName string, msg string) error
- func (m *Manage) SetMaxMsgLength(n int)
- func (m *Manage) SetUpgrade(up *websocket.Upgrader)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Manage ¶
type Manage struct {
// contains filtered or unexported fields
}
func NewManager ¶
func (*Manage) AddGroupWithExt ¶
func (m *Manage) AddGroupWithExt(groupName string, w http.ResponseWriter, r *http.Request, ext *inner.GroupExtData) error
AddGroupWithExt 只一个redis订阅
func (*Manage) SetMaxMsgLength ¶
func (*Manage) SetUpgrade ¶
Click to show internal directories.
Click to hide internal directories.