campaign

package
v0.4.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 27, 2019 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CandidateService

type CandidateService interface {
	CandidatesOf(term uint64) ([]common.Address, error)
}

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL