Hooks

Hook Methods

onDNSRequestBefore(request)

Called before the DNS response is generated.

onDNSRequestAfter(request, response)

Called after the DNS response is generated.

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.