mirror of
https://github.com/mumble-voip/grumble.git
synced 2026-01-10 03:52:00 -08:00
grumble, pkg/acl: move ACL handling to the acl package.
This commit is contained in:
parent
3dc3b25f57
commit
3ef203a83f
12 changed files with 608 additions and 608 deletions
23
pkg/acl/interfaces.go
Normal file
23
pkg/acl/interfaces.go
Normal file
|
|
@ -0,0 +1,23 @@
|
|||
// Copyright (c) 2013 The Grumble Authors
|
||||
// The use of this source code is goverened by a BSD-style
|
||||
// license that can be found in the LICENSE-file.
|
||||
|
||||
package acl
|
||||
|
||||
// User represents a user on a Mumble server.
|
||||
// The User interface represents the method set that
|
||||
// must be implemented in order to check a user's
|
||||
// permissions in an ACL context.
|
||||
type User interface {
|
||||
Session() uint32
|
||||
UserId() int
|
||||
|
||||
CertHash() string
|
||||
Tokens() []string
|
||||
ACLContext() *Context
|
||||
}
|
||||
|
||||
// Channel represents a Channel on a Mumble server.
|
||||
type Channel interface {
|
||||
ChannelId() int
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue