Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrUserNotFound . ErrUserNotFound = errors.New("user not found") // ErrPasswordNotFound . ErrPasswordNotFound = errors.New("password not found") )
Functions ¶
func DeletePasswordByIDAndUserID ¶
DeletePasswordByIDAndUserID .
Types ¶
type PasswordModel ¶
type PasswordModel struct {
ID string `json:"id"`
UserID string `json:"-"`
Login string `json:"login"`
Site string `json:"site"`
Uppercase bool `json:"uppercase"`
Symbols bool `json:"symbols"`
Lowercase bool `json:"lowercase"`
Numbers bool `json:"numbers"`
Counter int `json:"counter"`
Version int `json:"version"`
Length int `json:"length"`
}
PasswordModel .
func CreatePassword ¶
func CreatePassword(userID, login, site string, up, low, sym, num bool, c, v, l int) (*PasswordModel, error)
CreatePassword .
func GetPasswordsByUserID ¶
func GetPasswordsByUserID(userID string) []PasswordModel
GetPasswordsByUserID .
Click to show internal directories.
Click to hide internal directories.