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

80 lines
1.4 KiB
Go
Raw Normal View History

2020-01-19 12:30:09 +13:00
package message
2020-01-21 03:38:07 +13:00
import "n.eko.moe/neko/internal/session"
2020-01-19 12:30:09 +13:00
type Message struct {
Event string `json:"event"`
}
2020-01-21 05:22:24 +13:00
type Disconnect struct {
Event string `json:"event"`
Message string `json:"message"`
}
2020-01-21 03:38:07 +13:00
type Identity struct {
2020-01-21 05:22:24 +13:00
Event string `json:"event"`
ID string `json:"id"`
2020-01-19 12:30:09 +13:00
}
2020-01-21 03:38:07 +13:00
type IdentityDetails struct {
2020-01-21 05:22:24 +13:00
Event string `json:"event"`
2020-01-21 03:38:07 +13:00
Username string `json:"username"`
}
type Signal struct {
2020-01-21 05:22:24 +13:00
Event string `json:"event"`
SDP string `json:"sdp"`
2020-01-19 12:30:09 +13:00
}
2020-01-21 03:38:07 +13:00
2020-01-21 05:22:24 +13:00
type MembersList struct {
Event string `json:"event"`
2020-01-21 03:38:07 +13:00
Memebers []*session.Session `json:"members"`
}
type Member struct {
2020-01-21 05:22:24 +13:00
Event string `json:"event"`
2020-01-21 03:38:07 +13:00
*session.Session
}
type MemberDisconnected struct {
2020-01-21 05:22:24 +13:00
Event string `json:"event"`
ID string `json:"id"`
2020-01-21 03:38:07 +13:00
}
type Control struct {
2020-01-21 05:22:24 +13:00
Event string `json:"event"`
ID string `json:"id"`
2020-01-21 03:38:07 +13:00
}
2020-01-21 05:22:24 +13:00
type ChatRecieve struct {
Event string `json:"event"`
Content string `json:"content"`
}
type ChatSend struct {
Event string `json:"event"`
2020-01-21 03:38:07 +13:00
ID string `json:"id"`
Content string `json:"content"`
}
2020-01-21 05:22:24 +13:00
type EmojiRecieve struct {
Event string `json:"event"`
Emoji string `json:"emoji"`
}
type EmojiSend struct {
Event string `json:"event"`
ID string `json:"id"`
Emoji string `json:"emoji"`
}
type Admin struct {
Event string `json:"event"`
ID string `json:"id"`
}
type AdminSubject struct {
Event string `json:"event"`
Subject string `json:"subject"`
ID string `json:"id"`
}