Documentation ¶
Index ¶
- func ContextWithLogger(parent context.Context, logger *slog.Logger) context.Context
- func ContextWithSubject(parent context.Context, subject string) context.Context
- func LoggerFrom(ctx context.Context) *slog.Logger
- func SubjectFrom(ctx context.Context) (string, error)
- type Logger
- type RequireAuth
- type StatusResponseWriter
- type ValidateJSON
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ContextWithLogger ¶
func ContextWithSubject ¶
Types ¶
type RequireAuth ¶
type RequireAuth struct {
// contains filtered or unexported fields
}
func NewRequireAuth ¶
func NewRequireAuth(publicKey *ecdsa.PublicKey) *RequireAuth
type StatusResponseWriter ¶
type StatusResponseWriter struct {
// contains filtered or unexported fields
}
func (*StatusResponseWriter) Header ¶
func (w *StatusResponseWriter) Header() http.Header
func (*StatusResponseWriter) WriteHeader ¶
func (w *StatusResponseWriter) WriteHeader(statusCode int)
type ValidateJSON ¶
type ValidateJSON struct {
// contains filtered or unexported fields
}
func NewValidateJSON ¶
func NewValidateJSON(dir string) (*ValidateJSON, error)
func (*ValidateJSON) WithSchema ¶
Click to show internal directories.
Click to hide internal directories.