server

package
v0.0.0-...-b0597fb Latest Latest
Warning

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

Go to latest
Published: Mar 2, 2024 License: MIT Imports: 6 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 {
	URL         *url.URL
	Connections int
	Healthy     bool
	Mutex       sync.Mutex
}

func BuildServers

func BuildServers(config *config.Config) []*Server

func (*Server) CheckHealthy

func (s *Server) CheckHealthy(endpoint string, sucessStatusCode int, interval time.Duration)

func (*Server) ServeHTTP

func (s *Server) 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