Versions in this module Expand all Collapse all v1 v1.2.0 Sep 19, 2019 Changes in this version + func AddColumn(dbMap *gorp.DbMap, db string, table string, columnToAdd string, ...) + func DecodeHashList(hashList HashList) ([]chainhash.Hash, error) + 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 InsertLowFeeTicket(dbMap *gorp.DbMap, lowFeeTicket *LowFeeTicket) 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) (string, error) + func UseLogger(logger slog.Logger) + func ValidateHashList(hashList HashList) error + type EmailChange struct + Created int64 + Expires int64 + Id int64 + NewEmail string + Token string + UserId int64 + type HashList []string + func (hashList HashList) ToStringSlice() []string + type LowFeeTicket struct + AddedByUid int64 + Created int64 + Expires int64 + Id int64 + TicketAddress string + TicketExpiry int64 + TicketHash string + Voted int64 + func GetVotableLowFeeTickets(dbMap *gorp.DbMap) ([]LowFeeTicket, error) + type PasswordReset struct + Created int64 + Expires int64 + Id int64 + Token string + UserId int64 + type Session struct + Created int64 + Data []byte + 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) + type UserToken [userTokenSize]byte + func NewUserToken() (ut UserToken) + func UserTokenFromStr(token string) (UserToken, error) + func (ut UserToken) String() string