PHP Класс ec2dns\ec2dns

Автор: Dominik Tobschall (http://fruux.com/)
Показать файл Открыть проект

Защищенные свойства (Protected)

Свойство Тип Описание
$dnsCache
$ec2
$listener
$tld
$ttl

Открытые методы

Метод Описание
__construct ( ec2 $ec2 ) Creates the class.
onQueryCallback ( Hoa\Event\Bucket $bucket ) : false | string onQuery callback
run ( ) : void This method starts the ec2dns eventloop

Защищенные методы

Метод Описание
getCache ( string $type, string $tag ) : false | string dnsCache Getter
resolve ( string $type, string $tag ) : false | string This method resolves tags to IPs via ec2host.
setCache ( string $type, string $tag, string $ip ) : void dnsCache Setter
stripTld ( string $domain ) : string Returns the tag.

Описание методов

__construct() публичный Метод

Creates the class.
public __construct ( ec2 $ec2 )
$ec2 ec2

getCache() защищенный Метод

dnsCache Getter
protected getCache ( string $type, string $tag ) : false | string
$type string
$tag string
Результат false | string

onQueryCallback() публичный Метод

onQuery callback
public onQueryCallback ( Hoa\Event\Bucket $bucket ) : false | string
$bucket Hoa\Event\Bucket
Результат false | string

resolve() защищенный Метод

This method resolves tags to IPs via ec2host.
protected resolve ( string $type, string $tag ) : false | string
$type string
$tag string
Результат false | string

run() публичный Метод

This method starts the ec2dns eventloop
public run ( ) : void
Результат void

setCache() защищенный Метод

dnsCache Setter
protected setCache ( string $type, string $tag, string $ip ) : void
$type string
$tag string
$ip string
Результат void

stripTld() защищенный Метод

Returns the tag.
protected stripTld ( string $domain ) : string
$domain string
Результат string

Описание свойств

$dnsCache защищенное свойство

protected $dnsCache

$ec2 защищенное свойство

protected $ec2

$listener защищенное свойство

protected $listener

$tld защищенное свойство

protected $tld

$ttl защищенное свойство

protected $ttl