Documentation
¶
Index ¶
- type Manager
- func (m *Manager) Add(u *mumble.User) bool
- func (m *Manager) Count() int
- func (m *Manager) GetByName(name string) (*mumble.User, bool)
- func (m *Manager) GetUser(sessionID uint32) (*mumble.User, bool)
- func (m *Manager) ListAll() []*mumble.User
- func (m *Manager) ListByChannel(channelID uint32) []*mumble.User
- func (m *Manager) LookupAPIUser(username string) (id uint32, passwordHash string, role string, found bool)
- func (m *Manager) RegisterDBUser(username string) (userID uint32, passwordHash string, found bool)
- func (m *Manager) Remove(sessionID uint32) *mumble.User
- func (m *Manager) SessionIDsInChannel(channelID uint32) []uint32
- func (m *Manager) SetChannel(sessionID uint32, channelID uint32)
- func (m *Manager) SetPing(sessionID uint32, ping float32)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Manager ¶
type Manager struct {
// contains filtered or unexported fields
}
Manager tracks connected Mumble user sessions.
func NewManager ¶
NewManager creates a UserManager.
func (*Manager) ListByChannel ¶
ListByChannel returns users in the given channel.
func (*Manager) LookupAPIUser ¶
func (m *Manager) LookupAPIUser(username string) (id uint32, passwordHash string, role string, found bool)
LookupAPIUser looks up an API user by username, returning id, password hash, role, and found. Used for RBAC-aware Mumble auth: id is users.id, role is needed for ACL resolution.
func (*Manager) RegisterDBUser ¶
RegisterDBUser looks up a management/registered user by username.
func (*Manager) SessionIDsInChannel ¶
SessionIDsInChannel returns session IDs of users in the given channel.
func (*Manager) SetChannel ¶
SetChannel updates a user's channel.
Click to show internal directories.
Click to hide internal directories.