Versions in this module Expand all Collapse all v1 v1.0.0 Jul 19, 2018 Changes in this version + var MaxUsers = 10000 + var StakepooldUpdateKindAll = "ALL" + var StakepooldUpdateKindTickets = "TICKETS" + var StakepooldUpdateKindUsers = "USERS" + func DisableLog() + func NewGetTicketsCacheData(tfar *exccjson.TicketsForAddressResult) *getTicketsCacheData + func UseLogger(logger btclog.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 []TicketInfoLive + func (a ByTicketHeight) Len() int + func (a ByTicketHeight) Less(i, j int) bool + func (a ByTicketHeight) Swap(i, j int) + type MainController struct + APISecret string + APIVersionsSupported []int + func NewMainController(params *chaincfg.Params, adminIPs []string, adminUserIDs []string, ...) (*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) 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) (exccutil.Address, error) + func (controller *MainController) GetVoteVersion() (uint32, error) + func (controller *MainController) Index(c web.C, r *http.Request) (string, int) + func (controller *MainController) IsValidVoteBits(userVoteBits uint16) bool + 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) RPCIsStopped() bool + func (controller *MainController) RPCStart() + func (controller *MainController) RPCStop() error + func (controller *MainController) RPCSync(dbMap *gorp.DbMap) error + func (controller *MainController) SendMail(emailaddress string, subject string, body string) error + 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) SignIn(c web.C, r *http.Request) (string, int) + func (controller *MainController) SignInPost(c web.C, r *http.Request) (string, int) + func (controller *MainController) SignUp(c web.C, r *http.Request) (string, int) + func (controller *MainController) SignUpPost(c web.C, r *http.Request) (string, int) + func (controller *MainController) StakepooldGetIgnoredLowFeeTickets() (map[chainhash.Hash]string, error) + func (controller *MainController) StakepooldUpdateAll(dbMap *gorp.DbMap, updateKind string) error + func (controller *MainController) Stats(c web.C, r *http.Request) (string, int) + func (controller *MainController) TicketAddressForUserID(uid int) (exccutil.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) + func (controller *MainController) WalletStatus() ([]*exccjson.WalletInfoResult, error) + type TicketInfoHistoric struct + SpentBy string + SpentByHeight uint32 + Ticket string + TicketHeight uint32 + type TicketInfoInvalid struct + Ticket string + type TicketInfoLive struct + Ticket string + TicketHeight uint32