db

package
v0.0.0-...-dc78327 Latest Latest
Warning

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

Go to latest
Published: Apr 27, 2017 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DB

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

func UseDatabase

func UseDatabase(name string) (*DB, error)

func (*DB) Close

func (db *DB) Close() error

func (*DB) Create

func (db *DB) Create() error

func (*DB) GetKey

func (db *DB) GetKey(user string) ([]byte, error)

func (*DB) GetMessages

func (db *DB) GetMessages(user string) ([][]byte, error)

func (*DB) Reset

func (db *DB) Reset() error

func (*DB) SaveID

func (db *DB) SaveID(user string, key []byte) error

func (*DB) SaveMessage

func (db *DB) SaveMessage(user string, msg []byte) error

Jump to

Keyboard shortcuts

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