swagger

package
v0.0.0-...-9d85a19 Latest Latest
Warning

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

Go to latest
Published: Nov 26, 2019 License: BSD-3-Clause Imports: 9 Imported by: 0

README

Go API Server for swagger

This is a simple test application written to return the latest successfully built AMI.

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-06-07T07:12:47.013Z
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 BuildsParse

func BuildsParse(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

Types

type Blds

type Blds struct {
	Jobs struct {
		BuildBaseAMI struct {
			Builds []struct {
				RuntimeSeconds string `json:"runtime_seconds"`
				BuildDate      string `json:"build_date"`
				Result         string `json:"result"`
				Output         string `json:"output"`
			} `json:"Builds"`
		} `json:"Build base AMI"`
	} `json:"jobs"`
}

type Latest

type Latest struct {
	BuildDate  string `json:"build_date,omitempty"`
	AmiId      string `json:"ami_id,omitempty"`
	CommitHash string `json:"commit_hash,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