Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DeserializeMessage ¶
DeserializeMessage deserializes bytes into Message.
func ProcessMessage ¶
func ProcessMessage(ctx context.Context, conn tao.WriteCloser)
ProcessMessage process the logic of echo message.
Types ¶
type Message ¶
type Message struct {
Content string
}
Message defines the echo message.
func (Message) MessageNumber ¶
MessageNumber returns message type number.
Click to show internal directories.
Click to hide internal directories.