Versions in this module Expand all Collapse all v1 v1.1.1 Sep 22, 2017 Changes in this version + func DisableLog() + func GetDbMap(APISecret, baseURL, user, password, hostname, port, database string) *gorp.DbMap + func GetUserCount(dbMap *gorp.DbMap) int64 + func GetUserCountActive(dbMap *gorp.DbMap) int64 + func GetUserMax(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 + func SetUserAPIToken(dbMap *gorp.DbMap, APISecret string, baseURL string, id int64) error + func UseLogger(logger btclog.Logger) + type EmailChange struct + Created int64 + Expires int64 + Id int64 + NewEmail string + Token string + UserId int64 + type PasswordReset struct + Created int64 + Expires int64 + Id int64 + Token string + UserId int64 + type User struct + APIToken string + Email string + EmailToken string + EmailVerified int64 + HeightRegistered int64 + Id int64 + MultiSigAddress string + MultiSigScript string + Password []byte + PoolPubKeyAddr string + UserFeeAddr string + UserPubKeyAddr string + Username string + VoteBits int64 + VoteBitsVersion int64 + 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, err error) + func UpdateUserByID(dbMap *gorp.DbMap, id int64, multiSigAddr string, multiSigScript string, ...) (user *User) + func (user *User) HashPassword(password string)