Versions in this module Expand all Collapse all v3 v3.0.0 Oct 31, 2019 Changes in this version + func DisableLog() + func UseLogger(logger slog.Logger) + type ProposalDB struct + APIURLpath string + func NewProposalsDB(politeiaURL, dbPath string) (*ProposalDB, error) + func (db *ProposalDB) AllProposals(offset, rowsCount int, filterByVoteStatus ...int) (proposals []*pitypes.ProposalInfo, totalCount int, err error) + func (db *ProposalDB) CheckProposalsUpdates() error + func (db *ProposalDB) Close() error + func (db *ProposalDB) LastProposalsSync() int64 + func (db *ProposalDB) ProposalByRefID(RefID string) (*pitypes.ProposalInfo, error) + func (db *ProposalDB) ProposalByToken(proposalToken string) (*pitypes.ProposalInfo, error) Other modules containing this package github.com/decred/dcrdata/gov github.com/decred/dcrdata/gov/v2 github.com/decred/dcrdata/gov/v4 github.com/decred/dcrdata/gov/v5 github.com/decred/dcrdata/v4