models

package
v0.0.0-...-1946ff8 Latest Latest
Warning

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

Go to latest
Published: Aug 30, 2017 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type IndexModel

type IndexModel struct {
	Model
}

IndexModel is the model for the Index controller.

func NewIndexModel

func NewIndexModel(cli *strava.Client, con *structs.Config) *IndexModel

NewIndexModel returns a new IndexModel

func (*IndexModel) Get

func (m *IndexModel) Get() ([]*strava.ActivitySummary, error)

Get gets the data required for the Index controller from Strava.

Otherwise, it returns undefined data and the error causing failure.

type Model

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

Model is the base type of models in the 2016site architecture.

Each model wraps the MyRadio API to provide the data required for a controller.

type ModelInterface

type ModelInterface interface {
	Get() (data *interface{}, err error) // @TODO: Refactor this to a more appropriate name
}

ModelInterface is the interface to which models adhere.

Jump to

Keyboard shortcuts

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