Documentation
¶
Index ¶
- func GetDbMap(user, password, hostname, port, database string) *gorp.DbMap
- func GetUserCount(dbMap *gorp.DbMap) int64
- func GetUserCountActive(dbMap *gorp.DbMap) int64
- func InsertEmailChange(dbMap *gorp.DbMap, emailChange *EmailChange) error
- func InsertPasswordReset(dbMap *gorp.DbMap, passwordReset *PasswordReset) error
- func InsertUser(dbMap *gorp.DbMap, user *User) error
- type EmailChange
- type PasswordReset
- type User
- func GetAllCurrentMultiSigScripts(dbMap *gorp.DbMap) ([]User, error)
- func GetUserByEmail(dbMap *gorp.DbMap, email string) (user *User)
- func GetUserById(dbMap *gorp.DbMap, id int64) (user *User)
- func UpdateUserById(dbMap *gorp.DbMap, id int64, msa string, mss string, ppka string, upka string, ...) (user *User)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetUserCount ¶
GetUserCount gives a count of all users
func GetUserCountActive ¶
GetUserCountActive gives a count of all users who have submitted an address
func InsertEmailChange ¶
func InsertEmailChange(dbMap *gorp.DbMap, emailChange *EmailChange) error
func InsertPasswordReset ¶
func InsertPasswordReset(dbMap *gorp.DbMap, passwordReset *PasswordReset) error
Types ¶
type EmailChange ¶
type PasswordReset ¶
type User ¶
type User struct {
Id int64 `db:"UserId"`
Email string
Username string
Password []byte
MultiSigAddress string
MultiSigScript string
PoolPubKeyAddr string
UserPubKeyAddr string
UserFeeAddr string
HeightRegistered int64
EmailVerified int64
EmailToken string
}
func UpdateUserById ¶
func (*User) HashPassword ¶
Click to show internal directories.
Click to hide internal directories.