server

package
v0.0.0-...-57a585e Latest Latest
Warning

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

Go to latest
Published: Oct 9, 2023 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AboutHandler

func AboutHandler(w http.ResponseWriter, r *http.Request)

func HomeHandler

func HomeHandler(w http.ResponseWriter, r *http.Request)

Types

type Server

type Server interface {
	Start()
	WeatherHandler(w http.ResponseWriter, r *http.Request)
}

Server represents a weather server interface

func New

type WeatherRequest

type WeatherRequest struct {
	Lat string `json:"lat"`
	Lon string `json:"lon"`
}

WeatherRequest is the data object for SimpleWeather POST request

Jump to

Keyboard shortcuts

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