Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewHandlerWithUnsecuredLocalAuthorization ¶
NewHandlerWithUnsecuredLocalAuthorization processes requests with unsigned JWT tokens under the local principal's identity. Such tokens can be created by anyone without any secret knowledge.
Types ¶
type Config ¶
type Config struct { Server api.Server Authority string // External domain name with optional port number. Origins []string // Value "*" causes Origin header to be ignored. NonceChecker model.NonceChecker // StartSpan within request context, ending when endSpan is called. Nil // links must be ignored. [trace.ContextAutoLinks] must also be respected. // The pattern string indicates the matching HTTP route handler. StartSpan func(r *http.Request, pattern string, links ...*trace.Link) (ctx Context, endSpan func(Context)) // AddEvent to the current trace span, or outside of trace but in relation // to [trace.ContextAutoLinks]. AddEvent func(Context, *event.Event, error) }
Config for a web server.
func (*Config) Configured ¶
Source Files ¶
Click to show internal directories.
Click to hide internal directories.