handlers

package
v0.0.0-...-352fc53 Latest Latest
Warning

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

Go to latest
Published: Feb 15, 2021 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Module = wire.NewSet(
	New,
)

Functions

This section is empty.

Types

type ExampleHandler

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

func New

func New(service service.Service) (*ExampleHandler, error)

func (*ExampleHandler) HealthCheck

func (eh *ExampleHandler) HealthCheck(w http.ResponseWriter, r *http.Request)

HealthCheck handle health check

func (*ExampleHandler) ServeHTTP

func (eh *ExampleHandler) ServeHTTP(w http.ResponseWriter, r *http.Request)

ServeHTTP serves a http request given a response builder and request

type Handlers

type Handlers interface {
	HealthCheck(w http.ResponseWriter, r *http.Request)
	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