matrix

package
v0.0.0-...-3ddecfe Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 5, 2018 License: Apache-2.0 Imports: 2 Imported by: 4

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

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL