weather

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Oct 27, 2022 License: MIT Imports: 16 Imported by: 0

Documentation

Overview

Package weather implements the server to the spec described by schema/v1/openapi.yaml.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Server

type Server struct {
	MaxAge       time.Duration
	TimeNow      func() time.Time
	Openweather  openweather.OpenweatherClient
	Weatherstack weatherstack.WeatherstackClient
}

Server implements /v1/weather. See also Register.

func (*Server) Register

func (x *Server) Register(r chi.Router)

Register wires up the server.

Jump to

Keyboard shortcuts

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