Documentation
¶
Index ¶
- func NewDatabase(driver, createAddr, address, underlying, topic string, useAsync bool) (interface{}, error)
- type Database
- func (d *Database) OnUpsertPresences(ctx context.Context, userID, status, statusMsg, extStatusMsg string) error
- func (d *Database) RecoverCache()
- func (d *Database) SetGauge(qryDBGauge mon.LabeledGauge)
- func (d *Database) UpsertPresences(ctx context.Context, userID, status, statusMsg, extStatusMsg string) error
- func (d *Database) WriteDBEvent(ctx context.Context, update *dbtypes.DBEvent) error
- func (d *Database) WriteDBEventWithTbl(ctx context.Context, update *dbtypes.DBEvent, tbl string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewDatabase ¶
Types ¶
type Database ¶
type Database struct { AsyncSave bool // contains filtered or unexported fields }
func (*Database) OnUpsertPresences ¶
func (*Database) RecoverCache ¶
func (d *Database) RecoverCache()
func (*Database) SetGauge ¶
func (d *Database) SetGauge(qryDBGauge mon.LabeledGauge)
func (*Database) UpsertPresences ¶
func (*Database) WriteDBEvent ¶
WriteOutputEvents implements OutputRoomEventWriter
Click to show internal directories.
Click to hide internal directories.