Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrCardBankEmpity = errors.New("bank empity") ErrCardNumberEmpity = errors.New("number empity") ErrCardLongNumber = fmt.Errorf("number length is more than %d characters", maxCardNumberLegth) ErrCardDateEmpity = errors.New("date empity") ErrCardCVVEmpity = errors.New("cvv empity") ErrCardLongCVV = fmt.Errorf("cvv length is more than %d characters", maxCardCVVLegth) ErrCardMetainfoEmpity = errors.New("metainfo empity") )
View Source
var ( ErrLoginUsernameEmpity = errors.New("username empity") ErrLoginPasswordEmpity = errors.New("password empity") ErrLoginMetaInfoEmpity = errors.New("metainfo empity") ErrLoginLongUsername = fmt.Errorf("username length is more than %d characters", maxLoginUsernameLegth) )
View Source
var ( ErrUserUsernamePasswordEmpity = errors.New("username and/or password empity") ErrUserLongUsername = fmt.Errorf("username length is more than %d characters", maxUserUsernameLegth) )
View Source
var ErrFileMetainfoEmpity = errors.New("metainfo empity")
Functions ¶
This section is empty.
Types ¶
type Card ¶
type Card struct { ID int `json:"id"` Bank string `json:"bank"` Number string `json:"number"` Date string `json:"date"` CVV string `json:"cvv"` MetaInfo string `json:"metainfo"` }
Card модель банковской карты приложения
type File ¶
type File struct { ID int `json:"id"` Path string `json:"path"` Name string `json:"name"` MetaInfo string `json:"metainfo"` }
File модель файла пользователя
Click to show internal directories.
Click to hide internal directories.