You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
refactor(audit,auth): functional options for NewUsageRecorder + NewInterceptor (#236)
Continues the functional-options refactor from #235. Both constructors gain With...() options and drop struct-config / positional-args style.
- audit.NewUsageRecorder(store, opts...) — WithFlushInterval, WithLogger. RecorderConfig removed.
- auth.NewInterceptor(ctx, jwksURL, opts...) — WithIssuer, WithLogger. The previous positional issuer/logger args are now options.
auth uses the type name InterceptorOption so future constructors in the package can add their own options without conflict.
Closes#233, #234.
0 commit comments