Releases: xgfone/go-loadbalancer
Releases · xgfone/go-loadbalancer
v0.8.0: Refactor
v0.7.0: Refactor the loadbalancer
v0.6.0
- Changed:
Endpoint.Check
returnsbool
instead oferror
.- Refactor the health check of the endpoints.
- Rename the function
GetAllBuilderTypes
toGetAllBuilderPolicies
. - Rename some methods of
Forwarder
to implement the interfaceEndpointDiscovery
. - Remove the first argument
*http.Client
from the functionConfig.HandleRequest
. - Remove the function
GetHTTPClient
fromConfig
of the http endpoint.
v0.5.0: Refactor the codes
move the request functions to go-defaults
v0.4.0
v0.3.0
v0.2.0
- Added:
- Add the type
EndpointCheckerFunc
to convert a function to an endpoint checker.
- Add the type
- Changed:
- Add the new method
DelEndpointByID(id string)
for the interfaceEndpointUpdater
. - Change the type signature of
HTTPEndpointConfig.Handler
:
func(Request, *http.Client, *http.Request) (*http.Response, error)
->
func(string, *http.Client, *http.Request, Request) (*http.Response, error)
.
- Add the new method
- Others:
- Use
base64
instead ofhex
to encode the id of the backend server when it is not set.
- Use