21 lines
305 B
Go
21 lines
305 B
Go
package daemonconn
|
|
|
|
const (
|
|
MessageTypeEchoRequest = iota
|
|
MessageTypeEchoResponse
|
|
)
|
|
|
|
type EchoRequest struct {
|
|
EchoByte byte
|
|
}
|
|
|
|
func (EchoRequest) TypeID() uint32 {
|
|
return MessageTypeEchoRequest
|
|
}
|
|
|
|
type EchoResponse EchoRequest
|
|
|
|
func (EchoResponse) TypeID() uint32 {
|
|
return MessageTypeEchoResponse
|
|
}
|