services

package
v0.0.0-...-d746ddd Latest Latest
Warning

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

Go to latest
Published: Dec 28, 2016 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CanonicalFormat

func CanonicalFormat(data []models.EastDevonResponse, postcode string) []models.Schedule

CanonicalFormat takes the response and

func ResultParser

func ResultParser(r io.Reader, postcode string) models.Schedule

ResultParser takes a io.Reader and parses the dates for both Rubbish and Recycling

Types

type Client

type Client interface {
	Get(string) ([]models.Schedule, error)
}

Client provides an interface to the schedule package

type EastDevonClient

type EastDevonClient struct{}

EastDevonClient provides an implementation of the Client interface

func (EastDevonClient) Get

func (c EastDevonClient) Get(postcode string) ([]models.Schedule, error)

Get returns an array of Schedule structs which have been returned from

Jump to

Keyboard shortcuts

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