router

package
v0.0.0-...-eb72faa Latest Latest
Warning

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

Go to latest
Published: Aug 27, 2020 License: AGPL-3.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

View Source
const (
	RFC3339Date = "2006-01-02"
)

Variables

This section is empty.

Functions

func NewRouter

func NewRouter(w io.Writer) http.Handler

Types

type Error

type Error struct {
	Code int    `json:"code"`
	Msg  string `json:"error"`
	Err  string `json:"message"`
}

func (Error) Error

func (e Error) Error() string

type FeedQuery

type FeedQuery struct {
	URL struct {
		Seed       uint32 `schema:"seed,required"`
		Hemisphere string `schema:"hemisphere,required"`
		Name       string `schema:"name,required"`
		Date       string `schema:"date"`
	}

	Query struct {
		Timezone  string `schema:"timezone"`
		FirstDate string `schema:"first_date"`
		LastDate  string `schema:"last_date"`
	}
}

type FeedResponse

type FeedResponse struct {
	Island *meteonook.Island `json:"island"`
	Days   []*meteonook.Day  `json:"days"`
}

Jump to

Keyboard shortcuts

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