mirror of
https://github.com/m1k1o/neko.git
synced 2024-07-24 14:40:50 +12:00
session profile decoupled.
This commit is contained in:
@ -19,21 +19,12 @@ type SessionState struct {
|
||||
|
||||
type Session interface {
|
||||
ID() string
|
||||
|
||||
// profile
|
||||
Name() string
|
||||
IsAdmin() bool
|
||||
CanLogin() bool
|
||||
CanConnect() bool
|
||||
CanWatch() bool
|
||||
CanHost() bool
|
||||
CanAccessClipboard() bool
|
||||
GetProfile() MemberProfile
|
||||
Profile() MemberProfile
|
||||
|
||||
// state
|
||||
IsHost() bool
|
||||
IsConnected() bool
|
||||
GetState() SessionState
|
||||
State() SessionState
|
||||
|
||||
// websocket
|
||||
SetWebSocketPeer(websocketPeer WebSocketPeer)
|
||||
|
Reference in New Issue
Block a user