Documentation ¶
Index ¶
- type Message
- func (message *Message) GetBool(key string) (bool, error)
- func (message *Message) GetFloat(key string) (float64, error)
- func (message *Message) GetInteger(key string) (int, error)
- func (message *Message) GetString(key string) (string, error)
- func (message *Message) HasKey(key string) bool
- func (message *Message) SetBool(key string, value bool)
- func (message *Message) SetFloat(key string, value float64)
- func (message *Message) SetInteger(key string, value int)
- func (message *Message) SetString(key string, value string)
- func (message *Message) ToJson() []byte
- func (message *Message) ToString() string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Message ¶ added in v0.1.0
type Message struct { Type string `json:"type"` SenderID string `json:"senderId"` Information map[string]string `json:"info"` }
func NewMessage ¶ added in v0.1.0
func (*Message) GetInteger ¶ added in v0.1.0
func (*Message) SetInteger ¶ added in v0.1.0
Click to show internal directories.
Click to hide internal directories.