Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrCreateUser = errors.New("failed to add user to db")
ErrCreateUser throw by db when try to insert user
Functions ¶
func VaultExist ¶
VaultExist check if given vault is present in path
Types ¶
type Storage ¶
type Storage struct { Email string `json:"type"` Passwords map[string][]byte `json:"passwords"` TimeCreated time.Time `json:"timecreated"` }
Storage contains user email and - names with password
func New ¶
New creates a new Storage object from passed email adress and current encrypted password in database
Click to show internal directories.
Click to hide internal directories.