Skip to content

Commit 6b27b92

Browse files
committed
BUG/MINOR: http_after_response: use reload agent interface
1 parent 132fe51 commit 6b27b92

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

handlers/http_after_response_rule.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ import (
1212

1313
type CreateHTTPAfterResponseRuleHandlerImpl struct {
1414
Client client_native.HAProxyClient
15-
ReloadAgent *haproxy.ReloadAgent
15+
ReloadAgent haproxy.IReloadAgent
1616
}
1717

1818
func (c CreateHTTPAfterResponseRuleHandlerImpl) Handle(params http_after_response_rule.CreateHTTPAfterResponseRuleParams, _ interface{}) middleware.Responder {
@@ -63,7 +63,7 @@ func (c CreateHTTPAfterResponseRuleHandlerImpl) Handle(params http_after_respons
6363

6464
type DeleteHTTPAfterResponseRuleHandlerImpl struct {
6565
Client client_native.HAProxyClient
66-
ReloadAgent *haproxy.ReloadAgent
66+
ReloadAgent haproxy.IReloadAgent
6767
}
6868

6969
func (d DeleteHTTPAfterResponseRuleHandlerImpl) Handle(params http_after_response_rule.DeleteHTTPAfterResponseRuleParams, _ interface{}) middleware.Responder {
@@ -166,7 +166,7 @@ func (g GetHTTPAfterResponseRulesHandlerImpl) Handle(params http_after_response_
166166

167167
type ReplaceHTTPAfterResponseRuleHandlerImpl struct {
168168
Client client_native.HAProxyClient
169-
ReloadAgent *haproxy.ReloadAgent
169+
ReloadAgent haproxy.IReloadAgent
170170
}
171171

172172
func (r ReplaceHTTPAfterResponseRuleHandlerImpl) Handle(params http_after_response_rule.ReplaceHTTPAfterResponseRuleParams, _ interface{}) middleware.Responder {

0 commit comments

Comments
 (0)