Documentation ¶
Index ¶
- type SQLite
- func (s *SQLite) GetCurrentUser() (userR matrix.User, err error)
- func (s *SQLite) GetMessage(eventID string) (messageR matrix.Message, err error)
- func (s *SQLite) GetRoom(roomID string) (roomR matrix.Room, err error)
- func (s *SQLite) GetRooms() (roomsR []matrix.Room, err error)
- func (s *SQLite) GetUser(userID string) (userR matrix.User, err error)
- func (s *SQLite) Init() (err error)
- func (s *SQLite) Open() *sql.DB
- func (s *SQLite) SaveMessage(message matrix.Message) error
- func (s *SQLite) SaveRoom(Room matrix.Room) error
- func (s *SQLite) SaveUser(user matrix.User) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type SQLite ¶
type SQLite struct {
// contains filtered or unexported fields
}
SQLite implements a SQLite database for the db.DB interface
func (*SQLite) GetCurrentUser ¶
GetCurrentUser returns the current user including a ready gomatrix client
func (*SQLite) GetMessage ¶
GetMessage returns the Message where the id matches the eventID
func (*SQLite) SaveMessage ¶
SaveMessage saves message Events to the DB
Click to show internal directories.
Click to hide internal directories.