Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Register ¶
func Register(reg Registration) error
func ResetRegistryForTesting ¶
func ResetRegistryForTesting()
ResetRegistryForTesting clears the registry; meant for use in tests.
func SortByPriority ¶
func SortByPriority(hooks []ResolvedHook)
Types ¶
type ClientCert ¶
type ClientCert struct {
Leaf *x509.Certificate
Chain []*x509.Certificate
Fingerprint string
}
type CompletionHook ¶
type CompletionHook func(ctx context.Context, rc ResponseCtx) error
type Registration ¶
func Lookup ¶
func Lookup(name string) (Registration, bool)
func Registered ¶
func Registered() []Registration
type RequestCtx ¶
type RequestHook ¶
type RequestHook func(ctx context.Context, rc RequestCtx) error
type ResolvedHook ¶
type ResolvedHook struct {
Registration Registration
Matcher Matcher
Timeout time.Duration
}
type ResponseCtx ¶
Click to show internal directories.
Click to hide internal directories.