handlers

package
v0.0.0-...-4d77776 Latest Latest
Warning

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

Go to latest
Published: Apr 10, 2020 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(logger lager.Logger, port string) rata.Handlers

Types

type Body

type Body struct {
	Body  string
	Class string
}

type Env

type Env struct {
}

func (*Env) ServeHTTP

func (p *Env) ServeHTTP(w http.ResponseWriter, r *http.Request)

type Exit

type Exit struct {
	Time time.Time
}

func (*Exit) ServeHTTP

func (p *Exit) ServeHTTP(w http.ResponseWriter, r *http.Request)

type Hello

type Hello struct {
	Time time.Time
}

func (*Hello) ServeHTTP

func (p *Hello) ServeHTTP(w http.ResponseWriter, r *http.Request)

type Index

type Index struct {
}

func (*Index) ServeHTTP

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

type LoggingHandler

type LoggingHandler struct {
	Route   string
	Handler http.Handler
	Logger  lager.Logger
}

func (*LoggingHandler) ServeHTTP

func (h *LoggingHandler) ServeHTTP(w http.ResponseWriter, r *http.Request)

type Port

type Port struct {
	Port string
}

func (*Port) ServeHTTP

func (p *Port) ServeHTTP(w http.ResponseWriter, r *http.Request)

Jump to

Keyboard shortcuts

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