2020-06-19 11:36:37 +02:00
|
|
|
package main
|
|
|
|
|
2020-08-12 11:28:49 +02:00
|
|
|
type clientCredentials struct {
|
|
|
|
Username string `json:"username,omitempty"`
|
|
|
|
Password string `json:"password,omitempty"`
|
|
|
|
}
|
|
|
|
|
2020-09-13 10:16:10 +02:00
|
|
|
type clientPermissions struct {
|
|
|
|
Op bool `json:"op,omitempty"`
|
|
|
|
Present bool `json:"present,omitempty"`
|
|
|
|
Record bool `json:"record,omitempty"`
|
|
|
|
}
|
|
|
|
|
2020-06-19 11:36:37 +02:00
|
|
|
type client interface {
|
|
|
|
Group() *group
|
|
|
|
Id() string
|
2020-08-12 11:28:49 +02:00
|
|
|
Credentials() clientCredentials
|
2020-09-13 10:16:10 +02:00
|
|
|
SetPermissions(clientPermissions)
|
2020-06-19 11:36:37 +02:00
|
|
|
pushConn(id string, conn upConnection, tracks []upTrack, label string) error
|
|
|
|
pushClient(id, username string, add bool) error
|
|
|
|
}
|
2020-09-12 12:42:48 +02:00
|
|
|
|
|
|
|
type kickable interface {
|
|
|
|
kick(message string) error
|
|
|
|
}
|