Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ClientProxy clientProxy
MultiProxy ..
Functions ¶
func InitMultiProxy ¶
func InitMultiProxy() (obj *multiProxy)
func InitSingleProxy ¶
func InitSingleProxy() (obj *simplePorxy)
Types ¶
type EtcdClient ¶
type EtcdClient struct {
// contains filtered or unexported fields
}
func NewEtcdClient ¶
func NewEtcdClient(endpoints []string, timeout time.Duration, basicAuth bool, username, password string) (obj *EtcdClient, err error)
NewEtcdClient ..
type RestyClient ¶
type RestyClient struct {
// contains filtered or unexported fields
}
func NewRestyClient ¶
func NewRestyClient(mode string, proxyAddr string) (obj *RestyClient)
func (*RestyClient) Get ¶
func (r *RestyClient) Get(req view.ReqHTTPProxy) (*resty.Response, error)
func (*RestyClient) Post ¶
func (r *RestyClient) Post(req view.ReqHTTPProxy) (*resty.Response, error)
Click to show internal directories.
Click to hide internal directories.