Documentation
¶
Index ¶
Constants ¶
View Source
const ( Type byte = iota To From MId Msg )
Variables ¶
This section is empty.
Functions ¶
func Millisecond ¶
func Millisecond() uint32
Types ¶
type TextMessage ¶
type TextMessage struct { IMessage From string To string Msg string MsgId uint32 ExData map[string]string }
func NewTextMessage ¶
func NewTextMessage(From string, To string, Msg string) *TextMessage
func (*TextMessage) GetExData ¶ added in v0.0.2
func (m *TextMessage) GetExData() map[string]string
func (*TextMessage) GetExString ¶ added in v0.0.2
func (m *TextMessage) GetExString(k string) string
func (*TextMessage) GetString ¶
func (m *TextMessage) GetString(v byte) string
func (*TextMessage) GetUint32 ¶
func (m *TextMessage) GetUint32(v byte) uint32
func (*TextMessage) SetExString ¶ added in v0.0.2
func (m *TextMessage) SetExString(k string, v string)
Click to show internal directories.
Click to hide internal directories.