Constructor: nearestDc

Back to constructors index

Nearest data centre, according to geo-ip.


Name Type Required Description
country string Yes Country code determined by geo-ip
this_dc int Yes Number of current data centre
nearest_dc int Yes Number of nearest data centre

Type: NearestDc


$nearestDc = ['_' => 'nearestDc', 'country' => 'string', 'this_dc' => int, 'nearest_dc' => int];

Or, if you’re into Lua:

nearestDc={_='nearestDc', country='string', this_dc=int, nearest_dc=int}

This site uses cookies, as described in the cookie policy. By clicking on "Accept" you consent to the use of cookies.