Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
var NoCache = false
NoCache is a flag to disable caching of the results.
Functions ¶
This section is empty.
Types ¶
type AddrRequest ¶
type AddrRequest struct {
ResultCount int `json:"ResultCount"`
SearchText string `json:"SearchText"`
RateKeyRequired bool `json:"RateKeyRequired"`
}
AddrRequest is the address request.
type AddrResponse ¶
type AddrResponse []Address
AddrResponse is the address response.
func AddressLookup ¶
func AddressLookup(addr string) (AddrResponse, error)
AddressLookup is a convenience function to get addresses.
func MatchingPropertyAddresses ¶
func MatchingPropertyAddresses(addrReq *AddrRequest) (AddrResponse, error)
MatchingPropertyAddresses wrapper around the AKL Council API.
type Address ¶
type Address struct {
ACRateAccountKey string `json:"ACRateAccountKey"`
Address string `json:"Address"`
Suggestion string `json:"Suggestion"`
}
AddrSuggestion is the address suggestion.
type CollectionDayDetailResult ¶
type CollectionDayDetailResult struct {
Collections []RubbishCollection
Address *Address
}
CollectionDayDetailResult contains the information about Rubbish and Recycling collection.
func CollectionDayDetail ¶
func CollectionDayDetail(addr string) (*CollectionDayDetailResult, error)
CollectionDayDetail returns a collection day details for the specified address as reported by the Auckland Council Website.
func (*CollectionDayDetailResult) NextFoodScraps ¶ added in v1.1.0
func (res *CollectionDayDetailResult) NextFoodScraps() time.Time
NextFoodScraps returns the next food scraps collection date.
func (*CollectionDayDetailResult) NextRecycle ¶
func (res *CollectionDayDetailResult) NextRecycle() time.Time
NextRecycle returns the next recycle collection date.
func (*CollectionDayDetailResult) NextRubbish ¶
func (res *CollectionDayDetailResult) NextRubbish() time.Time
NextRubbish returns the next rubbish collection date.