Versions in this module Expand all Collapse all v1 v1.1.1 Sep 22, 2017 Changes in this version + const MaxUsers + func DisableLog() + func NewGetTicketsCacheData(tfar *dcrjson.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, APISecret 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) CheckAndResetUserVoteBits(dbMap *gorp.DbMap) + 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) 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) Stats(c web.C, r *http.Request) (string, int) + func (controller *MainController) Status(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) TriggerStakepooldUpdate(userid int64) error + 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() ([]*dcrjson.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