Documentation
¶
Index ¶
- func NewUserInfo(userID, orgID string, isAdmin bool, perms []string) *userInfo
- type Mgr
- func (m *Mgr) Broadcast(msg interface{})
- func (m *Mgr) CloseUsers(userIDs []string)
- func (m *Mgr) HandleWebSocket(ctx *gin.Context, user *userInfo) error
- func (m *Mgr) Run() error
- func (m *Mgr) SendByPerm(msg interface{}, orgID, perm string)
- func (m *Mgr) SendToUsers(msg interface{}, userIDs []string)
- func (m *Mgr) Stop()
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewUserInfo ¶
Types ¶
type Mgr ¶
type Mgr struct {
// contains filtered or unexported fields
}
func (*Mgr) CloseUsers ¶
func (*Mgr) SendByPerm ¶
func (*Mgr) SendToUsers ¶
Click to show internal directories.
Click to hide internal directories.