servers

package
v0.0.0-...-51e5d10 Latest Latest
Warning

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

Go to latest
Published: Oct 28, 2023 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

Functions

func StartHealthCheck

func StartHealthCheck(s *ServersConfig, interval int)

Types

type Server

type Server struct {
	URL          string
	ReverseProxy *httputil.ReverseProxy
	Health       bool
}

type ServersConfig

type ServersConfig struct {
	Hosts []*Server
	// contains filtered or unexported fields
}

func Init

func Init() ServersConfig

func (*ServersConfig) Add

func (s *ServersConfig) Add(servers ...string)

func (*ServersConfig) Current

func (s *ServersConfig) Current() *Server

Jump to

Keyboard shortcuts

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