Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var DRBLClientUA = "DRBL-Peer Client V1"
DRBLClientUA ---
Functions ¶
func ReverseTheDomain ¶
Types ¶
type DrblClient ¶
type DrblClient struct {
Peername string
Path string
Port int
Weight int64
Protocol string
BlResponses []string
Resolver *dns_resolver.DnsResolver
Client *http.Client
}
DrblClient ---
func New ¶
func New(peerName, protocol, path string, port int, weight int64, bladdr []string) *DrblClient
func NewPeerFromLine ¶
func NewPeerFromLine(peerline string) (*DrblClient, error)
func NewPeerFromYaml ¶
func NewPeerFromYaml(peer YamlPeerDrblName) (*DrblClient, error)
func (*DrblClient) HttpCheckUrlWithSrc ¶
type DrblPeers ¶
type DrblPeers struct {
Peers []DrblClient
HitWeight int64
Timeout int
Debug bool
}
func NewPeerListFromFile ¶
func NewPeerListFromYamlFile ¶
type YamlDrblPeers ¶
type YamlDrblPeers struct {
Clients []YamlPeerDrblName `peers`
}
Directories
¶
| Path | Synopsis |
|---|---|
|
examples-icap
|
|
|
icap-hostname-logger
command
An example of how to use go-icap.
|
An example of how to use go-icap. |
Click to show internal directories.
Click to hide internal directories.