<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Welcome to Gravity on Gravity</title><link>https://deploy-preview-2178--beryju-gravity.netlify.app/docs/</link><description>Recent content in Welcome to Gravity on Gravity</description><generator>Hugo</generator><language>en</language><atom:link href="https://deploy-preview-2178--beryju-gravity.netlify.app/docs/index.xml" rel="self" type="application/rss+xml"/><item><title/><link>https://deploy-preview-2178--beryju-gravity.netlify.app/docs/_gravity-hook-env/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://deploy-preview-2178--beryju-gravity.netlify.app/docs/_gravity-hook-env/</guid><description>&lt;h3 id="gravity-object"&gt;&lt;code&gt;gravity&lt;/code&gt; Object&lt;/h3&gt;
&lt;h4 id="logmsg-any"&gt;&lt;code&gt;log(msg: any)&lt;/code&gt;&lt;/h4&gt;
&lt;p&gt;Logs a message to the stdout of the Gravity node this hook is run on.&lt;/p&gt;
&lt;h4 id="node-string"&gt;&lt;code&gt;node: string&lt;/code&gt;&lt;/h4&gt;
&lt;p&gt;The identifier of the node this hook is run on.&lt;/p&gt;
&lt;h4 id="version-string"&gt;&lt;code&gt;version: string&lt;/code&gt;&lt;/h4&gt;
&lt;p&gt;The version of Gravity on the node this hook is run on.&lt;/p&gt;
&lt;h4 id="role"&gt;&lt;code&gt;role&lt;/code&gt;&lt;/h4&gt;
&lt;p&gt;A reference to the &lt;a href="https://pkg.go.dev/beryju.io/gravity/pkg/instance#RoleInstance"&gt;Role instance&lt;/a&gt; this hook was triggered by.&lt;/p&gt;
&lt;h3 id="net-object"&gt;&lt;code&gt;net&lt;/code&gt; Object&lt;/h3&gt;
&lt;h4 id="parseipip-string-family-string"&gt;&lt;code&gt;parseIP(ip: string, family: string)&lt;/code&gt;&lt;/h4&gt;
&lt;p&gt;Parse an IP address from the string &lt;code&gt;ip&lt;/code&gt; and return it as an array of bytes. &lt;code&gt;family&lt;/code&gt; determines if the IP should be parsed as IPv4 or IPv6.&lt;/p&gt;</description></item></channel></rss>