Documentation
¶
Overview ¶
Package memory contains an in-memory implementation of the Backend interface.
Index ¶
- type Backend
- func (b *Backend) AccessToken() string
- func (b *Backend) Account() string
- func (b *Backend) AccountData(room *matrix.Room, type_ string) (matrix.AccountDataEvent, bool)
- func (b *Backend) AddInboundGroupSession(roomID, deviceKey, sessionID, session string)
- func (b *Backend) AddLatestEvents(room matrix.Room, events []matrix.Event, prevBatch string)
- func (b *Backend) DeviceID() string
- func (b *Backend) DeviceInfo(user matrix.User, id string) (matrix.DeviceInfo, bool)
- func (b *Backend) DeviceList(user matrix.User) []matrix.Device
- func (b *Backend) DeviceListUntrack(user matrix.User)
- func (b *Backend) DeviceListUpdate(user matrix.User, devices []matrix.DeviceInfo)
- func (b *Backend) InboundGroupSession(roomID, deviceKey, sessionID string) string
- func (b *Backend) Initialize(mxid, deviceID, accessToken string)
- func (b *Backend) LatestEvents(room matrix.Room) ([]matrix.Event, string)
- func (b *Backend) MxID() string
- func (b *Backend) Open(string, string) error
- func (b *Backend) OutboundGroupSessions(roomID string) []string
- func (b *Backend) RoomState(room matrix.Room, type_, key string) (matrix.StateEvent, bool)
- func (b *Backend) RoomStateList(room matrix.Room, type_ string) []matrix.StateEvent
- func (b *Backend) Sessions(deviceKey string) []string
- func (b *Backend) UpdateAccount(acc string)
- func (b *Backend) UpdateAccountData(ev matrix.AccountDataEvent)
- func (b *Backend) UpdateOutboundGroupSessions(roomID string, sessions []string)
- func (b *Backend) UpdateRoomState(event matrix.StateEvent)
- func (b *Backend) UpdateSessions(deviceKey string, sessions []string)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Backend ¶
type Backend struct {
// contains filtered or unexported fields
}
func (*Backend) AccessToken ¶
func (*Backend) AccountData ¶
func (*Backend) AddInboundGroupSession ¶
func (*Backend) AddLatestEvents ¶
func (*Backend) DeviceInfo ¶
func (*Backend) DeviceListUntrack ¶
func (*Backend) DeviceListUpdate ¶
func (b *Backend) DeviceListUpdate(user matrix.User, devices []matrix.DeviceInfo)
func (*Backend) InboundGroupSession ¶
func (*Backend) Initialize ¶
func (*Backend) LatestEvents ¶
func (*Backend) OutboundGroupSessions ¶
func (*Backend) RoomStateList ¶
func (*Backend) UpdateAccount ¶
func (*Backend) UpdateAccountData ¶
func (b *Backend) UpdateAccountData(ev matrix.AccountDataEvent)
func (*Backend) UpdateOutboundGroupSessions ¶
func (*Backend) UpdateRoomState ¶
func (b *Backend) UpdateRoomState(event matrix.StateEvent)
func (*Backend) UpdateSessions ¶
Click to show internal directories.
Click to hide internal directories.