handlers

package
v0.0.0-...-e26ef75 Latest Latest
Warning

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

Go to latest
Published: Jan 21, 2021 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Goodbye

type Goodbye struct {
	// contains filtered or unexported fields
}

Goodbye is a simple handler

func NewGoodbye

func NewGoodbye(l *log.Logger) *Goodbye

NewHGoodbye creates a new goodbye handler with the given logger

func (*Goodbye) ServeHTTP

func (h *Goodbye) ServeHTTP(rw http.ResponseWriter, r *http.Request)

ServeHTTP implements the go http.Handler interface https://golang.org/pkg/net/http/#Handler

type Hello

type Hello struct {
	// contains filtered or unexported fields
}

Hello is a simple handler

func NewHello

func NewHello(l *log.Logger) *Hello

NewHello creates a new hello handler with the given logger

func (*Hello) ServeHTTP

func (h *Hello) ServeHTTP(rw http.ResponseWriter, r *http.Request)

ServeHTTP implements the go http.Handler interface https://golang.org/pkg/net/http/#Handler

Jump to

Keyboard shortcuts

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