Archived
2
0
This repository has been archived on 2024-06-24. You can view files and clone it, but cannot push or open issues or pull requests.
neko-custom/server/internal/message/messages.go
2020-01-23 15:23:26 +00:00

86 lines
1.5 KiB
Go

package message
import "n.eko.moe/neko/internal/session"
type Message struct {
Event string `json:"event"`
}
type Disconnect struct {
Event string `json:"event"`
Message string `json:"message"`
}
type Identity struct {
Event string `json:"event"`
ID string `json:"id"`
}
type IdentityDetails struct {
Event string `json:"event"`
Username string `json:"username"`
}
type Signal struct {
Event string `json:"event"`
SDP string `json:"sdp"`
}
type MembersList struct {
Event string `json:"event"`
Memebers []*session.Session `json:"members"`
}
type Member struct {
Event string `json:"event"`
*session.Session
}
type MemberDisconnected struct {
Event string `json:"event"`
ID string `json:"id"`
}
type Control struct {
Event string `json:"event"`
ID string `json:"id"`
}
type ControlTarget struct {
Event string `json:"event"`
ID string `json:"id"`
Target string `json:"target"`
}
type ChatRecieve struct {
Event string `json:"event"`
Content string `json:"content"`
}
type ChatSend struct {
Event string `json:"event"`
ID string `json:"id"`
Content string `json:"content"`
}
type EmoteRecieve struct {
Event string `json:"event"`
Emote string `json:"emote"`
}
type EmoteSend struct {
Event string `json:"event"`
ID string `json:"id"`
Emote string `json:"emote"`
}
type Admin struct {
Event string `json:"event"`
ID string `json:"id"`
}
type AdminTarget struct {
Event string `json:"event"`
Target string `json:"target"`
ID string `json:"id"`
}