db

package
v0.0.0-...-e526314 Latest Latest
Warning

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

Go to latest
Published: Nov 29, 2015 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	NoSuchUserError        = errors.New("No such user")
	UserAlreadyExistsError = errors.New("User already exists")
)

Functions

This section is empty.

Types

type DB

type DB interface {
	Close() error
	CreateUser(user *model.User) error
	GetUser(username string) (*model.User, error)
}

func Must

func Must(db DB, err error) DB

func Open

func Open(path string) (DB, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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