api

package
v0.0.0-...-cb2c959 Latest Latest
Warning

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

Go to latest
Published: Nov 17, 2018 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Consumer

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

Consumer consumes info from the TBA api.

func New

func New(tbaURL, tbaKey string) *Consumer

New returns a new TBA API Consumer.

func (Consumer) GetEvents

func (c Consumer) GetEvents(year int) ([]event.BasicEvent, error)

GetEvents retrieves all associated events from the blue alliance API.

func (Consumer) GetMatches

func (c Consumer) GetMatches(eventKey string) ([]match.Match, error)

GetMatches retrieves all associated matches from the blue alliance API.

func (Consumer) GetPhotoURL

func (c Consumer) GetPhotoURL(team string, year int) (url string, err error)

GetPhotoURL returns the optimal photo url for a team in a certain year from TBA api.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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