Documentation ¶
Index ¶
Constants ¶
View Source
const ( MessageTypeHello MessageType = "hello" MessageTypeMessage = "message" MessageTypeUserTyping = "user_typing" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Message ¶
type Message struct { MessageBase Hello MessageHello Message MessageMessage UserTyping MessageUserTyping }
func (*Message) UnmarshalJSON ¶
type MessageBase ¶
type MessageBase struct {
Type MessageType `json:"type"`
}
type MessageHello ¶
type MessageHello struct { }
type MessageMessage ¶
type MessageType ¶
type MessageType string
type MessageUserTyping ¶
type Session ¶
func (*Session) SendMessage ¶
Click to show internal directories.
Click to hide internal directories.