Implementation 1 of a minimalistic IRC server
This commit is contained in:
17
src/transport/messages.go
Normal file
17
src/transport/messages.go
Normal file
@@ -0,0 +1,17 @@
|
||||
package transport
|
||||
|
||||
type IncomingMessage struct {
|
||||
Sender ClientId
|
||||
Content Content
|
||||
}
|
||||
|
||||
type OutgoingMessage struct {
|
||||
Recipient ClientId
|
||||
Content Content
|
||||
}
|
||||
|
||||
type Content struct {
|
||||
Source *string
|
||||
Command string
|
||||
Arguments []string
|
||||
}
|
Reference in New Issue
Block a user