mirror of
https://github.com/jech/galene.git
synced 2024-11-13 20:25:57 +01:00
25 lines
598 B
Go
25 lines
598 B
Go
package main
|
|
|
|
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)
|
|
pushConn(id string, conn upConnection, tracks []upTrack, label string) error
|
|
pushClient(id, username string, add bool) error
|
|
}
|
|
|
|
type kickable interface {
|
|
kick(message string) error
|
|
}
|