Documentation ¶
Index ¶
- type Message
- func (m *Message) GetAuthorMXID() (mxid string)
- func (m *Message) GetEvent() (event *gomatrix.Event)
- func (m *Message) GetEventID() (id string)
- func (m *Message) GetMessage() (message string)
- func (m *Message) GetTimestamp() (ts *time.Time)
- func (m *Message) SetAuthorMXID(mxid string)
- func (m *Message) SetEvent(event *gomatrix.Event)
- func (m *Message) SetEventID(id string)
- func (m *Message) SetMessage(message string)
- func (m *Message) SetTimestamp(ts *time.Time)
- func (m *Message) Show() error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Message ¶
type Message struct {
// contains filtered or unexported fields
}
Message holds the needed Message data and allows to work with that. It gets normally loaded from the cache
func (*Message) GetAuthorMXID ¶
GetAuthorMXID returns the authors mxid from the current Message
func (*Message) GetEventID ¶
GetEventID returns the event ID from the current Message
func (*Message) GetMessage ¶
GetMessage returns the text from the current Message
func (*Message) GetTimestamp ¶
GetTimestamp returns the timestamp from the current Message
func (*Message) SetAuthorMXID ¶
SetAuthorMXID adds the author MXID to the current Message
func (*Message) SetEventID ¶
SetEventID adds the eventID to the current Message
func (*Message) SetMessage ¶
SetMessage adds the message Text to the current Message
func (*Message) SetTimestamp ¶
SetTimestamp adds the Timestamp to the current Message
Click to show internal directories.
Click to hide internal directories.