Documentation ¶
Index ¶
- func FromContextClient(ctx context.Context) *http.Client
- func GetHostName(r *http.Request) string
- func NewAuthorizationTransport(tokenType, token string, transport http.RoundTripper) http.RoundTripper
- func NewClient(ctx context.Context) *http.Client
- func NewContextClient(ctx context.Context, client *http.Client) context.Context
- func NewDumpTransport(ctx context.Context, transport http.RoundTripper) http.RoundTripper
- func Token(ctx context.Context, tokenKey string, oidcConf config.Oidc, ...) (string, bool, error)
- func UnAuthorizedResponse(w http.ResponseWriter, location string)
- type AuthorizationTransaport
- type DumpTransport
- type Handler
- type MultiHost
- type RoundTrip
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetHostName ¶
func NewAuthorizationTransport ¶
func NewAuthorizationTransport(tokenType, token string, transport http.RoundTripper) http.RoundTripper
func NewContextClient ¶
func NewDumpTransport ¶
func NewDumpTransport(ctx context.Context, transport http.RoundTripper) http.RoundTripper
func UnAuthorizedResponse ¶
func UnAuthorizedResponse(w http.ResponseWriter, location string)
Types ¶
type AuthorizationTransaport ¶
type AuthorizationTransaport struct { Transport http.RoundTripper // contains filtered or unexported fields }
type DumpTransport ¶
type DumpTransport struct { Transport http.RoundTripper // contains filtered or unexported fields }
type Handler ¶
Click to show internal directories.
Click to hide internal directories.