handler

package
v0.0.0-...-e7538a4 Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2023 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Index

func Index(mux *chi.Mux, sm *state.StateManager)

func Liveness

func Liveness(mux *chi.Mux, sm *state.StateManager)

func Readiness

func Readiness(mux *chi.Mux, sm *state.StateManager)

Types

type HTTPRequest

type HTTPRequest struct {
	Header     http.Header `json:"header"`
	Host       string      `json:"host"`
	Method     string      `json:"method"`
	RequestURI string      `json:"request_uri"`
	RemoteAddr string      `json:"remote_addr"`
}

func PickRequest

func PickRequest(r *http.Request) HTTPRequest

type Response

type Response struct {
	Hostname string      `json:"hostname"`
	Request  HTTPRequest `json:"request"`
	State    state.State `json:"state"`
}

Jump to

Keyboard shortcuts

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