Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type LabelKey ¶
type LabelKey string
LabelKey `Message.Labels' key
func (LabelKey) NormalizeLabelKey ¶
NormalizeLabelKey 格式化 labelkey & 转换类型
type Message ¶
type Message struct { Sender string `json:"sender"` Content interface{} `json:"content"` Labels map[LabelKey]interface{} `json:"labels"` Time int64 `json:"time,omitempty"` // UnixNano // contains filtered or unexported fields }
Message 通用消息结构体
func (*Message) OriginContent ¶
func (m *Message) OriginContent() interface{}
OriginContent get `Message.originContent'
func (*Message) SetOriginContent ¶
func (m *Message) SetOriginContent(content interface{})
SetOriginContent set `Message.originContent'
Click to show internal directories.
Click to hide internal directories.