diff options
| author | Kyren223 <ulmliad223@gmail.com> | 2024-10-16 16:10:26 +0300 |
|---|---|---|
| committer | Kyren223 <ulmliad223@gmail.com> | 2024-10-16 16:10:26 +0300 |
| commit | c35f2705dcebfae66ba293371332ab5867e703da (patch) | |
| tree | 9aeb2edc5e6dbd2ff2cc16783f27c095054e9d24 /internal/data/chat.go | |
| parent | cf105501c7eafb6e08e46d9674de61e3e849a45a (diff) | |
feat: basic messaging between client and server
Diffstat (limited to 'internal/data/chat.go')
| -rw-r--r-- | internal/data/chat.go | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/internal/data/chat.go b/internal/data/chat.go new file mode 100644 index 0000000..9d2443d --- /dev/null +++ b/internal/data/chat.go @@ -0,0 +1,36 @@ +package data + +import "github.com/kyren223/eko/pkg/snowflake" + +// Represents an Eko Network, equivalent to a "discord server". +type Network struct { + id snowflake.ID + name string + frequencies []snowflake.ID +} + +// Represents an Eko Frequency, equivalent to a "discord channel" within a "discord server". +type Frequency struct { + id snowflake.ID + name string +} + +// Represents an Eko Signal, equivalent to a "discord message" between only 2 people. +type Signal struct { + userId1 snowflake.ID + userId2 snowflake.ID +} + +// Represents a message +type Message struct { + Id snowflake.ID + SenderId snowflake.ID + FrequencyId snowflake.ID + NetworkId snowflake.ID + Contents string +} + +// Represents an Eko User +type User struct { + id snowflake.ID +} |
