Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type HttpClient ¶
type Upstream ¶
type Upstream struct { // Client *http.Client Client *HttpClient // contains filtered or unexported fields }
func NewHTTPSUpstream ¶
测试时,caCrtPath可以设置为"",客户端不会检验服务端发送过来的任何ca证书 线上时,建议caCrtPath设置为服务端下发的证书的本地路径,否则,可能遭受“中间人攻击”
func NewUnixUpstream ¶
func NewUpstream ¶
func NewUpstream() *Upstream
func NewUpstreamWithTimeout ¶
func (*Upstream) Getclient ¶
func (us *Upstream) Getclient() *HttpClient
func (*Upstream) RemovePeer ¶
Click to show internal directories.
Click to hide internal directories.