PHP Class SlightPHP\Rest_Http

Afficher le fichier Open project: hetao29/slightphp

Méthodes publiques

Méthode Description
addServer ( $host, $path = "", $weight = 1, $timeout = 1 ) consistent hashing
addServers ( array $servers )
getServer ( $key )
init ( $params = [] )

Private Methods

Méthode Description
_sort ( $a, $b )
hash ( $str )

Method Details

addServer() public static méthode

consistent hashing
public static addServer ( $host, $path = "", $weight = 1, $timeout = 1 )

addServers() static public méthode

static public addServers ( array $servers )
$servers array

getServer() public static méthode

public static getServer ( $key )

init() public méthode

public init ( $params = [] )