Versions in this module Expand all Collapse all v1 v1.2.0 Sep 19, 2019 Changes in this version + const MaxUsers + func DisableLog() + func UseLogger(logger slog.Logger) + type ApiController struct + type BySpentByHeight []TicketInfoHistoric + func (a BySpentByHeight) Len() int + func (a BySpentByHeight) Less(i, j int) bool + func (a BySpentByHeight) Swap(i, j int) + type ByTicketHeight []TicketInfo + func (a ByTicketHeight) Len() int + func (a ByTicketHeight) Less(i, j int) bool + func (a ByTicketHeight) Swap(i, j int) + type CaptchaHandler struct + ImgHeight int + ImgWidth int + type Config struct + APISecret string + APIVersionsSupported []int + AdminIPs []string + AdminUserIDs []string + BaseURL string + ClosePool bool + ClosePoolMsg string + Description string + Designation string + EmailSender email.Sender + FeeXpub *hdkeychain.ExtendedKey + MaxVotedTickets int + NetParams *chaincfg.Params + PoolEmail string + PoolFees float64 + PoolLink string + RealIPHeader string + StakepooldServers *stakepooldclient.StakepooldManager + VotingXpub *hdkeychain.ExtendedKey + type MainController struct + Cfg *Config + func NewMainController(cfg *Config) (*MainController, error) + func (controller *MainController) API(c web.C, r *http.Request) *system.APIResponse + func (controller *MainController) APIAddress(c web.C, r *http.Request) ([]string, codes.Code, string, error) + func (controller *MainController) APIPurchaseInfo(c web.C, r *http.Request) (*poolapi.PurchaseInfo, codes.Code, string, error) + func (controller *MainController) APIStats(c web.C, r *http.Request) (*poolapi.Stats, codes.Code, string, error) + func (controller *MainController) APIVoting(c web.C, r *http.Request) ([]string, codes.Code, string, error) + func (controller *MainController) Address(c web.C, r *http.Request) (string, int) + func (controller *MainController) AddressPost(c web.C, r *http.Request) (string, int) + func (controller *MainController) AdminStatus(c web.C, r *http.Request) (string, int) + func (controller *MainController) AdminTickets(c web.C, r *http.Request) (string, int) + func (controller *MainController) AdminTicketsPost(c web.C, r *http.Request) (string, int) + func (controller *MainController) CalcEstimatedTicketExpiry() time.Time + func (controller *MainController) CaptchaServe(c web.C, w http.ResponseWriter, r *http.Request) + func (controller *MainController) CaptchaVerify(c web.C, w http.ResponseWriter, r *http.Request) + func (controller *MainController) CheckAndResetUserVoteBits(dbMap *gorp.DbMap) (map[int64]*models.User, error) + func (controller *MainController) EmailUpdate(c web.C, r *http.Request) (string, int) + func (controller *MainController) EmailVerify(c web.C, r *http.Request) (string, int) + func (controller *MainController) Error(c web.C, r *http.Request) (string, int) + func (controller *MainController) FeeAddressForUserID(uid int) (dcrutil.Address, error) + func (controller *MainController) Index(c web.C, r *http.Request) (string, int) + func (controller *MainController) IsValidVoteBits(userVoteBits uint16) bool + func (controller *MainController) Login(c web.C, r *http.Request) (string, int) + func (controller *MainController) LoginPost(c web.C, r *http.Request) (string, int) + func (controller *MainController) Logout(c web.C, r *http.Request) (string, int) + func (controller *MainController) PasswordReset(c web.C, r *http.Request) (string, int) + func (controller *MainController) PasswordResetPost(c web.C, r *http.Request) (string, int) + func (controller *MainController) PasswordUpdate(c web.C, r *http.Request) (string, int) + func (controller *MainController) PasswordUpdatePost(c web.C, r *http.Request) (string, int) + func (controller *MainController) RPCSync(dbMap *gorp.DbMap) error + func (controller *MainController) Register(c web.C, r *http.Request) (string, int) + func (controller *MainController) RegisterPost(c web.C, r *http.Request) (string, int) + func (controller *MainController) Settings(c web.C, r *http.Request) (string, int) + func (controller *MainController) SettingsPost(c web.C, r *http.Request) (string, int) + func (controller *MainController) StakepooldUpdateTickets(dbMap *gorp.DbMap) error + func (controller *MainController) StakepooldUpdateUsers(dbMap *gorp.DbMap) error + func (controller *MainController) Stats(c web.C, r *http.Request) (string, int) + func (controller *MainController) TicketAddressForUserID(uid int) (dcrutil.Address, error) + func (controller *MainController) Tickets(c web.C, r *http.Request) (string, int) + func (controller *MainController) Voting(c web.C, r *http.Request) (string, int) + func (controller *MainController) VotingPost(c web.C, r *http.Request) (string, int) + type TicketInfo struct + Ticket string + TicketHeight uint32 + type TicketInfoHistoric struct + SpentBy string + SpentByHeight uint32 + Ticket string + TicketHeight uint32 + type TicketInfoInvalid struct + Ticket string