db

package
v0.0.0-...-194795b Latest Latest
Warning

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

Go to latest
Published: Jul 14, 2014 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Initialize

func Initialize() error

Initialize sets up the application's configuration directory.

func IsSetup

func IsSetup() (bool, error)

IsSetup returns true if the database has been setup.

func Password

func Password(username string) ([]byte, error)

Password returns the password hash for the user, or a nil slice if the user does not exist.

func SaveUser

func SaveUser(username string, ip net.Addr, hash []byte) error

func UserExists

func UserExists(username string) (bool, error)

UserExists reports whether a user with the username exists.

Types

This section is empty.

Jump to

Keyboard shortcuts

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