http

package
v0.0.0-...-3f64f60 Latest Latest
Warning

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

Go to latest
Published: Jun 10, 2017 License: MIT Imports: 6 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 {
	// contains filtered or unexported fields
}

Server is an HTTP server that controls the cook

func NewServer

NewServer returns an initialized Server

func (*Server) Index

func (s *Server) Index(w h.ResponseWriter, r *h.Request)

Index serves the / route

func (*Server) ListenAndServe

func (s *Server) ListenAndServe(addr string) error

ListenAndServe starts an HTTP listener at address `addr`, blocking until it's stopped

func (*Server) Run

func (s *Server) Run(w h.ResponseWriter, r *h.Request)

Run starts a cook

func (*Server) Status

func (s *Server) Status(w h.ResponseWriter, r *h.Request)

Status serves the /status route

func (*Server) Target

func (s *Server) Target(w h.ResponseWriter, r *h.Request)

Run starts a cook

Jump to

Keyboard shortcuts

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