myrest

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: May 24, 2018 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 Cyclist

type Cyclist struct {
	UID    string `json:"uid"`
	Name   string `json:"name"`
	Points int    `json:"points"`
}

type Etappe

type Etappe struct {
	UID            string        `json:"uid"`
	Day            time.Time     `json:"day"`
	StartLocation  string        `json:"startLocation"`
	FinishLocation string        `json:"finishLocation"`
	EtappeResult   *EtappeResult `json:"etappeResult"`
}

type EtappeResult

type EtappeResult struct {
	EtappeUID      string   `json:"etappeUid"`
	DayRankings    []string `json:"dayRankings"`
	YellowRankings []string `json:"yellowRankings"`
	ClimbRankings  []string `json:"climbRankings"`
	SprintRankings []string `json:"sprintRankings"`
}

type Tour

type Tour struct {
	Year     int       `json:"year"`
	Etappes  []Etappe  `json:"etappes"`
	Cyclists []Cyclist `json:"cyclists"`
}

type TourService

type TourService struct {
}

@RestService( path = "/api/tour", novalidation = "true" )

Jump to

Keyboard shortcuts

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