db

package
v0.0.0-...-fde670f Latest Latest
Warning

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

Go to latest
Published: Aug 7, 2019 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Database

type Database struct {
	// contains filtered or unexported fields
}

Database interface

func Connect

func Connect(path string) *Database

Connect to a database

func (*Database) Close

func (db *Database) Close()

Close database

func (*Database) ReadRoomData

func (db *Database) ReadRoomData(code string) (ret *api.RoomData, err error)

ReadRoomData from database

func (*Database) WriteRoomData

func (db *Database) WriteRoomData(room *api.RoomData) error

WriteRoomData to database

Jump to

Keyboard shortcuts

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