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.
Click to show internal directories.
Click to hide internal directories.