mirror of
https://github.com/jech/galene.git
synced 2024-11-22 16:45:58 +01:00
30 lines
657 B
Go
30 lines
657 B
Go
package group
|
|
|
|
import (
|
|
"sfu/conn"
|
|
)
|
|
|
|
type ClientCredentials struct {
|
|
Username string `json:"username,omitempty"`
|
|
Password string `json:"password,omitempty"`
|
|
}
|
|
|
|
type ClientPermissions struct {
|
|
Op bool `json:"op,omitempty"`
|
|
Present bool `json:"present,omitempty"`
|
|
Record bool `json:"record,omitempty"`
|
|
}
|
|
|
|
type Client interface {
|
|
Group() *Group
|
|
Id() string
|
|
Credentials() ClientCredentials
|
|
SetPermissions(ClientPermissions)
|
|
OverridePermissions(*Group) bool
|
|
PushConn(id string, conn conn.Up, tracks []conn.UpTrack, label string) error
|
|
PushClient(id, username string, add bool) error
|
|
}
|
|
|
|
type Kickable interface {
|
|
Kick(message string) error
|
|
}
|