simple server relay with clients
This commit is contained in:
parent
91b369ff53
commit
9984583dd2
6 changed files with 358 additions and 7 deletions
8
pkg/protocol/types.go
Normal file
8
pkg/protocol/types.go
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
package protocol
|
||||
|
||||
type Message struct {
|
||||
Type string `json:"type"`
|
||||
Sender string `json:"sender"`
|
||||
Target string `json:"target"`
|
||||
Content string `json:"content"`
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue