db

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Nov 24, 2018 License: MIT Imports: 7 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Initialize

func Initialize(dir string) 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