add skip for check exist method && handler for user methods
This commit is contained in:
1 parent
08c4fb9bee
commit
91a14f9f23
14 files changed
+136
-87
No files matched your search
@@ -14,12 +14,13 @@ import (
|
||||
)
|
||||
|
||||
type httpProxy struct {
|
||||
client *fasthttp.HostClient
|
||||
skipAuth bool
|
||||
client *fasthttp.HostClient
|
||||
skipAuth bool
|
||||
skipExistCheck bool
|
||||
}
|
||||
|
||||
func NewProxy(skipAuth bool) *httpProxy {
|
||||
return &httpProxy{client: nil, skipAuth: skipAuth}
|
||||
func NewProxy(skipAuth, skipExistCheck bool) *httpProxy {
|
||||
return &httpProxy{client: nil, skipAuth: skipAuth, skipExistCheck: skipExistCheck}
|
||||
}
|
||||
|
||||
func (p *httpProxy) Consumer(addressList []structure.AddressConfiguration) bool {
|
||||
@@ -72,6 +73,10 @@ func (p *httpProxy) SkipAuth() bool {
|
||||
return p.skipAuth
|
||||
}
|
||||
|
||||
func (p *httpProxy) SkipExistCheck() bool {
|
||||
return p.skipExistCheck
|
||||
}
|
||||
|
||||
func (p *httpProxy) Close() {
|
||||
p.client = nil
|
||||
}
|
||||
Reference in new issue
Block a user