seattlewaste

package module
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Apr 18, 2019 License: MIT Imports: 3 Imported by: 1

README

seattlewaste

    client := NewClient(apikey)
    client.GetCollection()

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	// contains filtered or unexported fields
}

Client - The Client for accessing Seattle Waste collection data

func NewClient

func NewClient(address string) *Client

NewClient - Create a new Client for a given address

func (*Client) GetCollections

func (c *Client) GetCollections(start int64) ([]Collection, error)

GetCollections - Get Collection dates for a given start time

type Collection

type Collection struct {
	Start            string
	Garbage          bool
	Recycling        bool
	FoodAndYardWaste bool
	Status           bool
}

Collection - The response from the web-service

Jump to

Keyboard shortcuts

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