package
2.0.0+incompatible
Repository: https://github.com/hustcat/client-go.git
Documentation: pkg.go.dev
# Functions
If bind-address is usable, return it directly If bind-address is not usable (unset, 0.0.0.0, or loopback), we will use the host's default interface.
ChooseHostInterface is a method used fetch an IP for a daemon.It uses data from /proc/net/route file.For a node with no internet connection ,it returns errorFor a multi n/w interface node it returns the IP of the interface with gateway on it.
CloneTLSConfig returns a tls.Config with all exported fields except SessionTicketsDisabled and SessionTicketKey copied.
No description provided by the author
No description provided by the author
Extracts and returns the clients IP from the given request.
No description provided by the author
IPNetEqual checks if the two input IPNets are representing the same subnet.
IsProbableEOF returns true if the given error resembles a connection termination scenario that would justify assuming that the watch is empty.
JoinSchemeNamePort returns a string that specifies the scheme, name, and port: * "<name>" * "<name>:<port>" * "<scheme>:<name>:<port>" None of the parameters may contain a ':' character Name is required Scheme must be "", "http", or "https".
NewProxierWithNoProxyCIDR constructs a Proxier function that respects CIDRs in NO_PROXY and delegates if no matching CIDRs are found.
ParsePortRange parses a string of the form "min-max", inclusive at both ends, and initializs a new PortRange from it.
No description provided by the author
SetOldTransportDefaults applies the defaults from http.DefaultTransport for the Proxy, Dial, and TLSHandshakeTimeout fields if unset.
SetTransportDefaults applies the defaults from http.DefaultTransport for the Proxy, Dial, and TLSHandshakeTimeout fields if unset.
SplitSchemeNamePort takes a string of the following forms: * "<name>", returns "", "<name>","", true * "<name>:<port>", returns "", "<name>","<port>",true * "<scheme>:<name>:<port>", returns "<scheme>","<name>","<port>",true
Name must be non-empty or valid will be returned false.
No description provided by the author
# Interfaces
No description provided by the author
# Type aliases
No description provided by the author