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