probe

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Sep 3, 2022 License: MIT Imports: 10 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterHealthHandlers

func RegisterHealthHandlers(ps Server, r hexa.HealthReporter)

func RegisterPprofHandlers

func RegisterPprofHandlers(s Server)

Types

type Handler

type Handler http.HandlerFunc

type HandlerDescriptor

type HandlerDescriptor struct {
	Name        string  `json:"name"`
	Path        string  `json:"path"`
	Description string  `json:"description"`
	Handler     Handler `json:"-"`
}

type Server

type Server interface {
	hexa.Runnable
	hexa.Shutdownable
	// Register registers request handler. if needed we can add
	// support to get middlewares... as options too, but currently
	// we don't need to it.
	Register(name, path string, handler Handler, description string)
}

func NewServer

func NewServer(server *http.Server, mux *http.ServeMux) Server

Jump to

Keyboard shortcuts

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