Versions in this module Expand all Collapse all v0 v0.0.1 Dec 7, 2023 Changes in this version + type AdministrationRegion struct + ElectionAdministrationBody *AdministrativeBody + ForceSendFields []string + LocalJurisdiction *AdministrationRegion + Name string + NullFields []string + Sources []*Source + func (s *AdministrationRegion) MarshalJSON() ([]byte, error) + type AdministrativeBody struct + AbsenteeVotingInfoUrl string + BallotInfoUrl string + CorrespondenceAddress *SimpleAddressType + ElectionInfoUrl string + ElectionNoticeText string + ElectionNoticeUrl string + ElectionOfficials []*ElectionOfficial + ElectionRegistrationConfirmationUrl string + ElectionRegistrationUrl string + ElectionRulesUrl string + ForceSendFields []string + HoursOfOperation string + Name string + NullFields []string + PhysicalAddress *SimpleAddressType + VoterServices []string + VotingLocationFinderUrl string + func (s *AdministrativeBody) MarshalJSON() ([]byte, error) + type Candidate struct + CandidateUrl string + Channels []*Channel + Email string + ForceSendFields []string + Name string + NullFields []string + OrderOnBallot int64 + Party string + Phone string + PhotoUrl string + func (s *Candidate) MarshalJSON() ([]byte, error) + type Channel struct + ForceSendFields []string + Id string + NullFields []string + Type string + func (s *Channel) MarshalJSON() ([]byte, error) + type Contest struct + BallotPlacement int64 + BallotTitle string + Candidates []*Candidate + District *ElectoralDistrict + ElectorateSpecifications string + ForceSendFields []string + Level []string + NullFields []string + NumberElected int64 + NumberVotingFor int64 + Office string + PrimaryParties []string + ReferendumBallotResponses []string + ReferendumBrief string + ReferendumConStatement string + ReferendumEffectOfAbstain string + ReferendumPassageThreshold string + ReferendumProStatement string + ReferendumSubtitle string + ReferendumText string + ReferendumTitle string + ReferendumUrl string + Roles []string + Sources []*Source + Special string + Type string + func (s *Contest) MarshalJSON() ([]byte, error) + type DivisionSearchResponse struct + ForceSendFields []string + Kind string + NullFields []string + Results []*DivisionSearchResult + func (s *DivisionSearchResponse) MarshalJSON() ([]byte, error) + type DivisionSearchResult struct + Aliases []string + ForceSendFields []string + Name string + NullFields []string + OcdId string + func (s *DivisionSearchResult) MarshalJSON() ([]byte, error) + type DivisionsSearchCall struct + func (c *DivisionsSearchCall) Context(ctx context.Context) *DivisionsSearchCall + func (c *DivisionsSearchCall) Do(opts ...googleapi.CallOption) (*DivisionSearchResponse, error) + func (c *DivisionsSearchCall) Fields(s ...googleapi.Field) *DivisionsSearchCall + func (c *DivisionsSearchCall) Header() http.Header + func (c *DivisionsSearchCall) IfNoneMatch(entityTag string) *DivisionsSearchCall + func (c *DivisionsSearchCall) Query(query string) *DivisionsSearchCall + type DivisionsService struct + func NewDivisionsService(s *Service) *DivisionsService + func (r *DivisionsService) Search() *DivisionsSearchCall + type Election struct + ElectionDay string + ForceSendFields []string + Id int64 + Name string + NullFields []string + OcdDivisionId string + ShapeLookupBehavior string + func (s *Election) MarshalJSON() ([]byte, error) + type ElectionOfficial struct + EmailAddress string + FaxNumber string + ForceSendFields []string + Name string + NullFields []string + OfficePhoneNumber string + Title string + func (s *ElectionOfficial) MarshalJSON() ([]byte, error) + type ElectionsElectionQueryCall struct + func (c *ElectionsElectionQueryCall) Context(ctx context.Context) *ElectionsElectionQueryCall + func (c *ElectionsElectionQueryCall) Do(opts ...googleapi.CallOption) (*ElectionsQueryResponse, error) + func (c *ElectionsElectionQueryCall) Fields(s ...googleapi.Field) *ElectionsElectionQueryCall + func (c *ElectionsElectionQueryCall) Header() http.Header + func (c *ElectionsElectionQueryCall) IfNoneMatch(entityTag string) *ElectionsElectionQueryCall + func (c *ElectionsElectionQueryCall) ProductionDataOnly(productionDataOnly bool) *ElectionsElectionQueryCall + type ElectionsQueryResponse struct + Elections []*Election + ForceSendFields []string + Kind string + NullFields []string + func (s *ElectionsQueryResponse) MarshalJSON() ([]byte, error) + type ElectionsService struct + func NewElectionsService(s *Service) *ElectionsService + func (r *ElectionsService) ElectionQuery() *ElectionsElectionQueryCall + func (r *ElectionsService) VoterInfoQuery(address string) *ElectionsVoterInfoQueryCall + type ElectionsVoterInfoQueryCall struct + func (c *ElectionsVoterInfoQueryCall) Context(ctx context.Context) *ElectionsVoterInfoQueryCall + func (c *ElectionsVoterInfoQueryCall) Do(opts ...googleapi.CallOption) (*VoterInfoResponse, error) + func (c *ElectionsVoterInfoQueryCall) ElectionId(electionId int64) *ElectionsVoterInfoQueryCall + func (c *ElectionsVoterInfoQueryCall) Fields(s ...googleapi.Field) *ElectionsVoterInfoQueryCall + func (c *ElectionsVoterInfoQueryCall) Header() http.Header + func (c *ElectionsVoterInfoQueryCall) IfNoneMatch(entityTag string) *ElectionsVoterInfoQueryCall + func (c *ElectionsVoterInfoQueryCall) OfficialOnly(officialOnly bool) *ElectionsVoterInfoQueryCall + func (c *ElectionsVoterInfoQueryCall) ProductionDataOnly(productionDataOnly bool) *ElectionsVoterInfoQueryCall + func (c *ElectionsVoterInfoQueryCall) ReturnAllAvailableData(returnAllAvailableData bool) *ElectionsVoterInfoQueryCall + type ElectoralDistrict struct + ForceSendFields []string + Id string + Name string + NullFields []string + Scope string + func (s *ElectoralDistrict) MarshalJSON() ([]byte, error) + type GeographicDivision struct + AlsoKnownAs []string + ForceSendFields []string + Name string + NullFields []string + OfficeIndices []int64 + func (s *GeographicDivision) MarshalJSON() ([]byte, error) + type Office struct + DivisionId string + ForceSendFields []string + Levels []string + Name string + NullFields []string + OfficialIndices []int64 + Roles []string + Sources []*Source + func (s *Office) MarshalJSON() ([]byte, error) + type Official struct + Address []*SimpleAddressType + Channels []*Channel + Emails []string + ForceSendFields []string + Name string + NullFields []string + Party string + Phones []string + PhotoUrl string + Urls []string + func (s *Official) MarshalJSON() ([]byte, error) + type PollingLocation struct + Address *SimpleAddressType + EndDate string + ForceSendFields []string + Latitude float64 + Longitude float64 + Name string + Notes string + NullFields []string + PollingHours string + Sources []*Source + StartDate string + VoterServices string + func (s *PollingLocation) MarshalJSON() ([]byte, error) + func (s *PollingLocation) UnmarshalJSON(data []byte) error + type Precinct struct + AdministrationRegionId string + ContestId []string + DatasetId int64 + EarlyVoteSiteId []string + ElectoralDistrictId []string + ForceSendFields []string + Id string + MailOnly bool + Name string + NullFields []string + Number string + OcdId []string + PollingLocationId []string + SpatialBoundaryId []string + SplitName string + Ward string + func (s *Precinct) MarshalJSON() ([]byte, error) + type RepresentativeInfoData struct + Divisions map[string]GeographicDivision + ForceSendFields []string + NullFields []string + Offices []*Office + Officials []*Official + func (s *RepresentativeInfoData) MarshalJSON() ([]byte, error) + type RepresentativeInfoResponse struct + Divisions map[string]GeographicDivision + ForceSendFields []string + Kind string + NormalizedInput *SimpleAddressType + NullFields []string + Offices []*Office + Officials []*Official + func (s *RepresentativeInfoResponse) MarshalJSON() ([]byte, error) + type RepresentativesRepresentativeInfoByAddressCall struct + func (c *RepresentativesRepresentativeInfoByAddressCall) Address(address string) *RepresentativesRepresentativeInfoByAddressCall + func (c *RepresentativesRepresentativeInfoByAddressCall) Context(ctx context.Context) *RepresentativesRepresentativeInfoByAddressCall + func (c *RepresentativesRepresentativeInfoByAddressCall) Do(opts ...googleapi.CallOption) (*RepresentativeInfoResponse, error) + func (c *RepresentativesRepresentativeInfoByAddressCall) Fields(s ...googleapi.Field) *RepresentativesRepresentativeInfoByAddressCall + func (c *RepresentativesRepresentativeInfoByAddressCall) Header() http.Header + func (c *RepresentativesRepresentativeInfoByAddressCall) IfNoneMatch(entityTag string) *RepresentativesRepresentativeInfoByAddressCall + func (c *RepresentativesRepresentativeInfoByAddressCall) IncludeOffices(includeOffices bool) *RepresentativesRepresentativeInfoByAddressCall + func (c *RepresentativesRepresentativeInfoByAddressCall) Levels(levels ...string) *RepresentativesRepresentativeInfoByAddressCall + func (c *RepresentativesRepresentativeInfoByAddressCall) Roles(roles ...string) *RepresentativesRepresentativeInfoByAddressCall + type RepresentativesRepresentativeInfoByDivisionCall struct + func (c *RepresentativesRepresentativeInfoByDivisionCall) Context(ctx context.Context) *RepresentativesRepresentativeInfoByDivisionCall + func (c *RepresentativesRepresentativeInfoByDivisionCall) Do(opts ...googleapi.CallOption) (*RepresentativeInfoData, error) + func (c *RepresentativesRepresentativeInfoByDivisionCall) Fields(s ...googleapi.Field) *RepresentativesRepresentativeInfoByDivisionCall + func (c *RepresentativesRepresentativeInfoByDivisionCall) Header() http.Header + func (c *RepresentativesRepresentativeInfoByDivisionCall) IfNoneMatch(entityTag string) *RepresentativesRepresentativeInfoByDivisionCall + func (c *RepresentativesRepresentativeInfoByDivisionCall) Levels(levels ...string) *RepresentativesRepresentativeInfoByDivisionCall + func (c *RepresentativesRepresentativeInfoByDivisionCall) Recursive(recursive bool) *RepresentativesRepresentativeInfoByDivisionCall + func (c *RepresentativesRepresentativeInfoByDivisionCall) Roles(roles ...string) *RepresentativesRepresentativeInfoByDivisionCall + type RepresentativesService struct + func NewRepresentativesService(s *Service) *RepresentativesService + func (r *RepresentativesService) RepresentativeInfoByAddress() *RepresentativesRepresentativeInfoByAddressCall + func (r *RepresentativesService) RepresentativeInfoByDivision(ocdId string) *RepresentativesRepresentativeInfoByDivisionCall + type Service struct + BasePath string + Divisions *DivisionsService + Elections *ElectionsService + Representatives *RepresentativesService + UserAgent string + func New(client *http.Client) (*Service, error) + func NewService(ctx context.Context, opts ...option.ClientOption) (*Service, error) + type SimpleAddressType struct + City string + ForceSendFields []string + Line1 string + Line2 string + Line3 string + LocationName string + NullFields []string + State string + Zip string + func (s *SimpleAddressType) MarshalJSON() ([]byte, error) + type Source struct + ForceSendFields []string + Name string + NullFields []string + Official bool + func (s *Source) MarshalJSON() ([]byte, error) + type VoterInfoResponse struct + Contests []*Contest + DropOffLocations []*PollingLocation + EarlyVoteSites []*PollingLocation + Election *Election + ForceSendFields []string + Kind string + MailOnly bool + NormalizedInput *SimpleAddressType + NullFields []string + OtherElections []*Election + PollingLocations []*PollingLocation + PrecinctId string + Precincts []*Precinct + State []*AdministrationRegion + func (s *VoterInfoResponse) MarshalJSON() ([]byte, error)