summaryrefslogtreecommitdiff
path: root/internal/packet/messages.go
blob: f8390f8a67a59055b1cc45ad644068a0b9dccdf5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
package packet

type EkoMessage struct {
	Message string `msgpack:"message"`
}

func (m *EkoMessage) Type() PacketType {
	return TypeEko
}

type ErrorMessage struct {
	Error string `msgpack:"error"`
}

func (m *ErrorMessage) Type() PacketType {
	return TypeError
}