Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CandidateService ¶
CandidateService provides methods to obtain all candidates from campaign contract
func NewCampaignService ¶
func NewCampaignService(campaignContract common.Address, backend bind.ContractBackend) (CandidateService, error)
NewCampaignService creates a concrete candidate service instance.
type CandidateServiceImpl ¶
type CandidateServiceImpl struct {
// contains filtered or unexported fields
}
CandidateServiceImpl is the default candidate list collector
func (*CandidateServiceImpl) CandidatesOf ¶
func (rs *CandidateServiceImpl) CandidatesOf(term uint64) ([]common.Address, error)
CandidatesOf implements CandidateService
Click to show internal directories.
Click to hide internal directories.