Documentation ¶
Index ¶
- func AddNewDomain(domain string, username string, password string) (result bool, err error)
- func AddNewUser(data Users) (result bool, err error)
- func ChangePassword(data Users)
- func DeleteDomain(domain string)
- func DeleteUser(userName string)
- type Domains
- type Export
- type ExportDKIM
- type ExportUsers
- type Users
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddNewDomain ¶
func AddNewUser ¶
func ChangePassword ¶
func ChangePassword(data Users)
func DeleteDomain ¶
func DeleteDomain(domain string)
func DeleteUser ¶
func DeleteUser(userName string)
Types ¶
type Domains ¶
type Domains struct { Id uint64 `db:"id" json:"id" form:"id"` Name string `db:"name" json:"name" form:"name" validation:"required"` UsersCount uint64 `db:"users_count" json:"users_count"` }
func GetDomains ¶
func GetDomains() (result []Domains)
Get All domains orderder by id DESC with users count
type Export ¶
type Export struct { Accounts []ExportUsers `json:"accounts"` Dkim ExportDKIM `json:"dkim"` DomainName string `json:"domainName"` GenTime string `json:"generatedAt"` Filename string `json:"export_filename"` }
type ExportDKIM ¶
type ExportUsers ¶
type Users ¶
type Users struct { Id uint64 `db:"id" json:"id" form:"id"` DomainID uint64 `db:"domain_id" json:"domain_id" form:"domain_id" validation:"required"` Password string `db:"password" json:"-" form:"password" validation:"required"` PasswordIsEncrypted string `form:"is_encrypted" json:"-"` Email string `db:"email" json:"email" form:"email" validation:"email,required"` }
func GetAllUsers ¶
func (Users) GenEncryptedPassword ¶
Click to show internal directories.
Click to hide internal directories.