Documentation
¶
Overview ¶
Package access provides server-side authz/audit middleware built on accessx.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Server ¶
func Server(guard accessx.Guard, opts ...Option) middleware.Middleware
Server enforces authz and records audit through accessx.Guard. It fills common audit fields such as principal, request_id, trace_id, tenant_id, client_ip and user_agent from contextx and transport headers.
Types ¶
type Option ¶
type Option func(*options)
Option configures Server.
func WithResolver ¶
WithResolver configures the operation-to-resource resolver.
Click to show internal directories.
Click to hide internal directories.