Documentation ¶
Index ¶
- func Backup(w http.ResponseWriter, r *http.Request) error
- func BackupHTTP(w http.ResponseWriter, r *http.Request)
- func BackupLocal() error
- func ConnectDatabase() (*bbolt.DB, error)
- func HashPassword(s string) string
- func NewHTTPError(err error, status int, detail string) error
- func Serve()
- type Application
- type ClientError
- type DBError
- type HTTPError
- type MasterPass
- type Password
- type Record
- type Route
- type Routes
- type Status
- type User
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BackupHTTP ¶ added in v0.0.5
func BackupHTTP(w http.ResponseWriter, r *http.Request)
func BackupLocal ¶ added in v0.0.5
func BackupLocal() error
func ConnectDatabase ¶ added in v0.0.5
ConnectDatabase initializes a boltdb database and returns a pointer to it.
func HashPassword ¶
Types ¶
type Application ¶ added in v0.0.5
type ClientError ¶ added in v0.0.5
type HTTPError ¶ added in v0.0.5
type MasterPass ¶ added in v0.0.5
type MasterPass struct {
MasterPassword string `json:"master_password"`
}
type Password ¶
type Password struct { PlainText string `json:"password"` // contains filtered or unexported fields }
type Record ¶ added in v0.0.5
func (*Record) AddRecord ¶ added in v0.0.5
AddRecord creates a bucket and a key value pair inside of the bucket using a record for values.
func (*Record) DeleteEncryptedRecord ¶ added in v0.0.5
func (*Record) DeleteRecord ¶ added in v0.0.5
func (*Record) FindCorrectRecord ¶ added in v0.0.5
FindCorrectRecord loops through a bucket's key/values and compares the key to the key in the record. It decrypts the existing key to do the comparison.
Click to show internal directories.
Click to hide internal directories.