PHP 클래스 ec2dns\ec2dns

저자: Dominik Tobschall (http://fruux.com/)
파일 보기 프로젝트 열기: fruux/ec2dns

보호된 프로퍼티들

프로퍼티 타입 설명
$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