handlers

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Aug 30, 2023 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Handlers

type Handlers interface {
	HealthCheck(w http.ResponseWriter, r *http.Request)
	RunHeuristic(w http.ResponseWriter, r *http.Request)

	ServeHTTP(w http.ResponseWriter, r *http.Request)
}

func New

func New(ctx context.Context, service service.Service) (Handlers, error)

New ... Initializer

type PessimismHandler

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

PessimismHandler ... Server handler logic

func (*PessimismHandler) HealthCheck

func (ph *PessimismHandler) HealthCheck(w http.ResponseWriter, r *http.Request)

HealthCheck ... Handle health check

func (*PessimismHandler) RunHeuristic added in v1.0.0

func (ph *PessimismHandler) RunHeuristic(w http.ResponseWriter, r *http.Request)

RunHeuristic ... Handle heuristic run request

func (*PessimismHandler) ServeHTTP

func (ph *PessimismHandler) ServeHTTP(w http.ResponseWriter, r *http.Request)

ServeHTTP ... Serves a http request given a response builder and request

type Route

type Route = string

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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