db

package
v0.0.0-...-3119c8f Latest Latest
Warning

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

Go to latest
Published: Jul 31, 2021 License: GPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DataDir = ""

Functions

func DBInit

func DBInit()

func Get

func Get(key string) []byte

Get value from db

func Set

func Set(key string, value []byte)

Set value

Types

type Storer

type Storer struct {
}

Storer

func (*Storer) LoadFilterID

func (s *Storer) LoadFilterID(userID id.UserID) string

func (*Storer) LoadNextBatch

func (s *Storer) LoadNextBatch(userID id.UserID) string

func (*Storer) LoadRoom

func (s *Storer) LoadRoom(roomID id.RoomID) *mautrix.Room

func (*Storer) SaveFilterID

func (s *Storer) SaveFilterID(userID id.UserID, filterID string)

func (*Storer) SaveNextBatch

func (s *Storer) SaveNextBatch(userID id.UserID, nextBatchToken string)

func (*Storer) SaveRoom

func (s *Storer) SaveRoom(room *mautrix.Room)

Jump to

Keyboard shortcuts

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