package
module
Version:
v0.0.0-...-e548f88
Opens a new window with list of versions in this module.
Published: Dec 23, 2022
License: MIT
Opens a new window with license information.
Imports: 9
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
README
¶
godon
Godon is a simple load balancer built with golang.
Features
- Load Balancing Algorithm
- HealthCheck
Get started
See examples.
Appendix
Documentation
¶
Serve serves a loadbalancer.
type Backend struct {
URL string `json:"url"`
IsDead bool
}
Backend is servers which load balancer is transferred.
GetIsDead returns the value of IsDead in Backend.
SetDead updates the value of IsDead in Backend.
type Config struct {
Proxy Proxy `json:"proxy"`
Backends []Backend `json:"backends"`
}
Config is a configuration.
type Proxy struct {
Port string `json:"port"`
}
Proxy is a reverse proxy, and means load balancer.
Source Files
¶
Directories
¶
Click to show internal directories.
Click to hide internal directories.