handlers

package
v1.0.0-beta2 Latest Latest
Warning

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

Go to latest
Published: Mar 10, 2017 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HelloHandler

type HelloHandler struct {
	hello.Sayer
	// contains filtered or unexported fields
}

func NewHandler

func NewHandler(s hello.Sayer) *HelloHandler

DIG injection function Parameter of type hello.Sayer signals that we're dependent on it and it will be automatically provided by the graph

func (*HelloHandler) ServeHTTP

func (h *HelloHandler) 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