Skip to content

Releases: xgfone/go-loadbalancer

v0.8.0: Refactor

16 Sep 10:57
Compare
Choose a tag to compare

v0.7.0: Refactor the loadbalancer

15 May 08:24
Compare
Choose a tag to compare

v0.6.0

07 Apr 15:25
Compare
Choose a tag to compare
  • Changed:
    • Endpoint.Check returns bool instead of error.
    • Refactor the health check of the endpoints.
    • Rename the function GetAllBuilderTypes to GetAllBuilderPolicies.
    • Rename some methods of Forwarder to implement the interface EndpointDiscovery.
    • Remove the first argument *http.Client from the function Config.HandleRequest.
    • Remove the function GetHTTPClient from Config of the http endpoint.

v0.5.0: Refactor the codes

05 Apr 07:28
Compare
Choose a tag to compare
move the request functions to go-defaults

v0.4.0

26 Sep 01:50
Compare
Choose a tag to compare
  • Added:
    • Add the new endpoint checker NewEndpointPortChecker to check whether to connect to the endpoint with the given address HOST:PORT by TCP.
  • Changed:
    • Rename the method GetUpdaterr to GetUpdater of the type HealthCheck.

v0.3.0

27 Jun 05:09
Compare
Choose a tag to compare
  • Changed:
    • Change the method String of the interface Selector to Name.

v0.2.0

25 Jun 14:52
Compare
Choose a tag to compare
  • Added:
    • Add the type EndpointCheckerFunc to convert a function to an endpoint checker.
  • Changed:
    • Add the new method DelEndpointByID(id string) for the interface EndpointUpdater.
    • 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).
  • Others:
    • Use base64 instead of hex to encode the id of the backend server when it is not set.