Hooks
less than a minute
Hook Methods
onDNSRequestBefore(request)
Called before the DNS response is generated.
onDNSRequestAfter(request, response)
Called after the DNS response is generated.
request
: See https://pkg.go.dev/beryju.io/gravity/pkg/roles/dns/utils#DNSRequestresponse
: See https://pkg.go.dev/github.com/miekg/dns#Msg
Environment
gravity
Object
log(msg)
Logs a message to the stdout of the Gravity node this hook is run on.
node
The identifier of the node this hook is run on.
version
The version of Gravity on the node this hook is run on.
role
A reference to the Role instance this hook was triggered by.