github.com/avenga/couper@v1.12.2/handler/transport/backend_options.go (about) 1 package transport 2 3 import ( 4 "net/http" 5 6 "github.com/avenga/couper/config" 7 "github.com/avenga/couper/handler/validation" 8 ) 9 10 // BackendOptions represents the transport <BackendOptions> object. 11 type BackendOptions struct { 12 RequestAuthz []RequestAuthorizer 13 HealthCheck *config.HealthCheck 14 OpenAPI *validation.OpenAPIOptions 15 } 16 17 type RequestAuthorizer interface { 18 GetToken(req *http.Request) error 19 RetryWithToken(req *http.Request, res *http.Response) (bool, error) 20 21 value() (string, string) 22 }