Add a new protocol

Co-authored-by: Gérald Croës <gerald@containo.us>
This commit is contained in:
Julien Salleyron 2019-03-14 09:30:04 +01:00 committed by Traefiker Bot
parent 0ca2149408
commit 4a68d29ce2
231 changed files with 6895 additions and 4395 deletions

View file

@ -29,7 +29,7 @@ const (
)
type serviceBuilder interface {
Build(ctx context.Context, serviceName string, responseModifier func(*http.Response) error) (http.Handler, error)
BuildHTTP(ctx context.Context, serviceName string, responseModifier func(*http.Response) error) (http.Handler, error)
}
// customErrors is a middleware that provides the custom error pages..
@ -50,7 +50,7 @@ func New(ctx context.Context, next http.Handler, config config.ErrorPage, servic
return nil, err
}
backend, err := serviceBuilder.Build(ctx, config.Service, nil)
backend, err := serviceBuilder.BuildHTTP(ctx, config.Service, nil)
if err != nil {
return nil, err
}