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 ¶
AddrRequest is the address request.
type AddrResponse ¶
type AddrResponse struct {
Items []Address `json:"items"`
}
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 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.
type RubbishCollection ¶
type RubbishCollection struct {
Day string
Date time.Time
Rubbish bool
Recycle bool
FoodScraps bool
}
RubbishCollection contains the date and type of collection.
func (*RubbishCollection) String ¶ added in v1.2.3
func (r *RubbishCollection) String() string
func (*RubbishCollection) Type ¶ added in v1.2.3
func (r *RubbishCollection) Type() string