PHP Class ec2dns\ec2dns

Author: Dominik Tobschall (http://fruux.com/)
Afficher le fichier Open project: fruux/ec2dns

Protected Properties

Свойство Type Description
$dnsCache
$ec2
$listener
$tld
$ttl

Méthodes publiques

Méthode Description
__construct ( ec2 $ec2 ) Creates the class.
onQueryCallback ( Hoa\Event\Bucket $bucket ) : false | string onQuery callback
run ( ) : void This method starts the ec2dns eventloop

Méthodes protégées

Méthode Description
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.

Method Details

__construct() public méthode

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

getCache() protected méthode

dnsCache Getter
protected getCache ( string $type, string $tag ) : false | string
$type string
$tag string
Résultat false | string

onQueryCallback() public méthode

onQuery callback
public onQueryCallback ( Hoa\Event\Bucket $bucket ) : false | string
$bucket Hoa\Event\Bucket
Résultat false | string

resolve() protected méthode

This method resolves tags to IPs via ec2host.
protected resolve ( string $type, string $tag ) : false | string
$type string
$tag string
Résultat false | string

run() public méthode

This method starts the ec2dns eventloop
public run ( ) : void
Résultat void

setCache() protected méthode

dnsCache Setter
protected setCache ( string $type, string $tag, string $ip ) : void
$type string
$tag string
$ip string
Résultat void

stripTld() protected méthode

Returns the tag.
protected stripTld ( string $domain ) : string
$domain string
Résultat string

Property Details

$dnsCache protected_oe property

protected $dnsCache

$ec2 protected_oe property

protected $ec2

$listener protected_oe property

protected $listener

$tld protected_oe property

protected $tld

$ttl protected_oe property

protected $ttl