Documentation ¶
Index ¶
Constants ¶
View Source
const ( // ChatMessage is the message number of chat message. ChatMessage uint64 = 1 ChatMessageName = "ChatMessage" )
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) RequestCommand ¶
RequestCommand returns the request command.
func (Message) RequestName ¶
RequestName returns the request name.
func (Message) ResponseCommand ¶
ResponseCommand returns the response command.
func (Message) ResponseName ¶
ResponseName returns the response name.
Click to show internal directories.
Click to hide internal directories.