Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Message ¶
type Message interface { // Handled using global "own User" //SetCli(cli *gomatrix.Client) SetEventID(id string) SetEvent(event *gomatrix.Event) SetAuthorMXID(mxid string) SetMessage(message string) SetTimestamp(ts *time.Time) GetEventID() (id string) GetEvent() (event *gomatrix.Event) GetAuthorMXID() (mxid string) GetMessage() (message string) GetTimestamp() (ts *time.Time) Show() error }
Message defines a Interface to allow multiple Message type Implementations
type Room ¶
type Room interface { // Handled using global "own User" //SetCli(cli *gomatrix.Client) SetRoomID(id string) SetRoomAliases(aliases []string) SetName(name string) SetAvatar(avatar []byte) SetTopic(topic string) SetMessages(messages []Message) GetRoomID() string GetRoomAliases() []string GetName() (string, error) GetAvatar() ([]byte, error) GetTopic() (string, error) GetMessages() []Message }
Room defines a Interface to allow multiple Room type Implementations
type User ¶
type User interface { SetCli(cli *gomatrix.Client) SetMXID(id string) SetDisplayName(roomID string, name string) SetAvatar(roomID string, avatar []byte) GetMXID() string GetDisplayName(roomID string) (string, error) GetAvatar(roomID string) ([]byte, error) GetCli() (cli *gomatrix.Client) }
User defines a Interface to allow multiple User type Implementations
Click to show internal directories.
Click to hide internal directories.