Skip to content
This repository has been archived by the owner on Jul 11, 2023. It is now read-only.

Commit

Permalink
wip callback update
Browse files Browse the repository at this point in the history
  • Loading branch information
Tieske committed May 1, 2020
1 parent af62b50 commit d47b994
Showing 1 changed file with 12 additions and 5 deletions.
17 changes: 12 additions & 5 deletions src/resty/dns/balancer/base.lua
Original file line number Diff line number Diff line change
Expand Up @@ -1275,11 +1275,18 @@ end
--
-- Signature of the callback is for address adding/removing:
--
-- `function(balancer, "added"/"removed", address, ip, port, hostname)`
--
-- where `ip` might also
-- be a hostname if the DNS resolution returns another name (usually in
-- SRV records).
-- `function(balancer, "added"/"removed", address, ip, port, hostname, hostheader)`
--
-- - `address` is the address object added
-- - `ip` is the IP address for this object, but might also be a hostname if
-- the DNS resolution returns another name (usually in SRV records)
-- - `port` is the port to use
-- - `hostname` is the hostname for which the address was added to the balancer
-- with `addHost` (resolving that name caused the creation of this address)
-- - `hostheader` is the hostheader to be used. This can have 3 values; 1) `nil` if the
-- `hostname` added was an ip-address to begin with, 2) it will be equal to the
-- name in `ip` if there is a named SRV entry, and `useSRVname == true`, 3) otherwise
-- it will be equal to `hostname`
--
-- For health updates the signature is:
--
Expand Down

0 comments on commit d47b994

Please sign in to comment.