Documentation ¶
Index ¶
- Constants
- 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) Close()
- 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) (events []matrix.Event, prevBatch string)
- func (b *Backend) MxID() string
- func (b *Backend) Open(mxid, deviceID string) error
- func (b *Backend) OutboundGroupSessions(roomID string) []string
- func (b *Backend) RoomState(room matrix.Room, type_ string, 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(account string)
- func (b *Backend) UpdateAccountData(event 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 ¶
View Source
const ErrNoRowsStr = "sql: no rows in result set"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Backend ¶
type Backend struct {
// contains filtered or unexported fields
}
Backend implements a matrix storage backend using sqlite
func (*Backend) AccessToken ¶
AccessToken implements the Backend interface
func (*Backend) AccountData ¶
AccountData implements the Backend interface
func (*Backend) AddInboundGroupSession ¶
func (*Backend) AddLatestEvents ¶
func (*Backend) Close ¶
func (b *Backend) Close()
Close closes the underlying database. After calling Close() the Backend will become unusable
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 ¶
Initialize implements the backend interface
func (*Backend) LatestEvents ¶
func (*Backend) OutboundGroupSessions ¶
func (*Backend) RoomStateList ¶
func (*Backend) UpdateAccount ¶
func (*Backend) UpdateAccountData ¶
func (b *Backend) UpdateAccountData(event 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.