server

package
v0.6.3 Latest Latest
Warning

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

Go to latest
Published: Feb 20, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Server

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

func New

func New(cfg ServerConfig) *Server

func (*Server) MetricsHandler

func (s *Server) MetricsHandler(w http.ResponseWriter, r *http.Request)

func (*Server) Serve

func (s *Server) Serve(ctx context.Context) error

type ServerConfig

type ServerConfig struct {
	Host string
	Port string

	LivenessCheck  healthz.Check
	ReadinessCheck healthz.Check

	Debug bool
}

Jump to

Keyboard shortcuts

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