Documentation ¶
Index ¶
- func GetNamespace(defaultNamespace, fullName string) (string, string)
- func GetServiceName(urlValue string) string
- type AuthInjector
- type BaseURLResolver
- type BasicAuthInjector
- type FunctionAsHostBaseURLResolver
- type FunctionPrefixTrimmingURLPathTransformer
- type SingleHostBaseURLResolver
- type TransparentURLPathTransformer
- type URLPathTransformer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetNamespace ¶
func GetServiceName ¶
Types ¶
type AuthInjector ¶
AuthInjector is an interface for injecting authentication information into a request which will be proxied or made to a remote/upstream service.
type BaseURLResolver ¶
type BaseURLResolver interface { Resolve(r *http.Request) string BuildURL(function, namespace, healthPath string, directFunctions bool) string }
BaseURLResolver URL resolver for upstream requests
type BasicAuthInjector ¶
type BasicAuthInjector struct {
Credentials *auth.BasicAuthCredentials
}
func (BasicAuthInjector) Inject ¶
func (b BasicAuthInjector) Inject(r *http.Request)
type FunctionAsHostBaseURLResolver ¶
FunctionAsHostBaseURLResolver resolves URLs using a function from the URL as a host
type FunctionPrefixTrimmingURLPathTransformer ¶
type FunctionPrefixTrimmingURLPathTransformer struct { }
FunctionPrefixTrimmingURLPathTransformer removes the "/function/servicename/" prefix from the URL path.
type SingleHostBaseURLResolver ¶
type SingleHostBaseURLResolver struct {
BaseURL string
}
SingleHostBaseURLResolver resolves URLs against a single BaseURL
type TransparentURLPathTransformer ¶
type TransparentURLPathTransformer struct { }
TransparentURLPathTransformer passes the requested URL path through untouched.
type URLPathTransformer ¶
URLPathTransformer Transform the incoming URL path for upstream requests
Click to show internal directories.
Click to hide internal directories.