Documentation ¶
Index ¶
- func AddCORS(to http.Handler, opts AddCORSOpts) http.Handler
- func AddObservability(to http.Handler, opts AddObservabilityOpts) http.Handler
- func AddSessionContext(to http.Handler, opts AddSessionContextOpts) (http.Handler, error)
- type AddCORSOpts
- type AddObservabilityOpts
- type AddSessionContextOpts
- type FormattedLogger
- type Metrics
- type MetricsRecorder
- type ResponseWriter
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddObservability ¶ added in v0.4.0
func AddObservability(to http.Handler, opts AddObservabilityOpts) http.Handler
func AddSessionContext ¶
Types ¶
type AddCORSOpts ¶
type AddObservabilityOpts ¶ added in v0.4.0
type AddObservabilityOpts struct { Logger FormattedLogger Recorder MetricsRecorder }
type AddSessionContextOpts ¶
type AddSessionContextOpts struct { CookieID string ErrorLogger func(string, ...interface{}) SessionTokenConsumer func(string) (map[string]interface{}, error) SessionTokenProvider func(interface{}, *http.Request) *http.Request }
func (AddSessionContextOpts) Validate ¶
func (o AddSessionContextOpts) Validate() error
type FormattedLogger ¶
type FormattedLogger func(string, ...interface{})
type MetricsRecorder ¶ added in v0.4.0
type MetricsRecorder func(Metrics)
type ResponseWriter ¶
type ResponseWriter struct { http.ResponseWriter ResponseSize int Status int }
func (ResponseWriter) Header ¶
func (rw ResponseWriter) Header() http.Header
func (*ResponseWriter) WriteHeader ¶
func (rw *ResponseWriter) WriteHeader(status int)
Click to show internal directories.
Click to hide internal directories.