swagger

package
v0.0.0-...-7d1d753 Latest Latest
Warning

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

Go to latest
Published: Oct 29, 2019 License: MIT Imports: 10 Imported by: 0

README

Go API Server for swagger

Get weather data of airports

Overview

This server was generated by the [swagger-codegen] (https://github.com/swagger-api/swagger-codegen) project.
By using the OpenAPI-Spec from a remote server, you can easily generate a server stub.

To see how to make this your own, look here:

README

  • API version: 1.0.0
  • Build date: 2019-10-29T12:05:30.356Z
Running the server

To run the server, follow these simple steps:

go run main.go

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetCaptorById

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

func Index

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

func Logger

func Logger(inner http.Handler, name string) http.Handler

func NewRouter

func NewRouter() *mux.Router
func Search(w http.ResponseWriter, r *http.Request)

func WriteJSON

func WriteJSON(w http.ResponseWriter, data []byte)

Types

type Captor

type Captor struct {
	Id int64 `json:"id,omitempty"`

	IATA string `json:"IATA,omitempty"`

	Type_ string `json:"type,omitempty"`

	QOS int64 `json:"QOS,omitempty"`
}

type Measure

type Measure struct {
	Timestamp string `json:"timestamp,omitempty"`

	Value float32 `json:"value,omitempty"`
}

type Route

type Route struct {
	Name        string
	Method      string
	Pattern     string
	HandlerFunc http.HandlerFunc
}

type Routes

type Routes []Route

Jump to

Keyboard shortcuts

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