api

package
v0.0.0-...-4172a7e Latest Latest
Warning

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

Go to latest
Published: Feb 7, 2019 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Server

type Server struct {
	Port int `json:"port"`

	Version string
	Commit  string
	Branch  string
}

Server represents the API server

func (Server) EncodeHandler

func (s Server) EncodeHandler(w http.ResponseWriter, r *http.Request)

EncodeHandler takes JSON input and encodes it into amino

func (*Server) Router

func (s *Server) Router() *mux.Router

Router returns the router

func (*Server) VersionHandler

func (s *Server) VersionHandler(w http.ResponseWriter, r *http.Request)

VersionHandler handles the /version route

Jump to

Keyboard shortcuts

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