Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SetDebugLogger ¶
SetDebugLogger can be used to provide a function, that will be used for logging debug information.
func SetHostname ¶
SetHostname will set the hostname to use for acessing the API.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client is a client suitable for querying the "Renoweb" API.
func (*Client) AddressID ¶
AddressID will lookup the address ID using needle. Only the first result will be returned.
func (*Client) PickupPlan ¶
func (c *Client) PickupPlan(addressID int) (*PickupPlan, error)
PickupPlan will retrieve all pickup plans for addressID.
type PickupPlan ¶
type PickupPlan struct {
List []PickupPlanList
}
type PickupPlanList ¶
type PickupPlanList struct { ID int `json:"id"` ToemningsDage string `json:"toemningsdage"` ToemningsDato string `json:"toemningsdato"` }
func (PickupPlanList) ParseToemningsDato ¶
func (p PickupPlanList) ParseToemningsDato() (time.Time, error)
ParseToemningsDato is to help parse the odd timestamp from RenoWeb
Click to show internal directories.
Click to hide internal directories.