func WithAudit(handler http.Handler, sink audit.Sink, policy audit.PolicyRuleEvaluator, longRunningCheck request.LongRunningRequestCheck) http.Handler { … }
func evaluatePolicyAndCreateAuditEvent(req *http.Request, policy audit.PolicyRuleEvaluator) (*audit.AuditContext, error) { … }
func writeLatencyToAnnotation(ctx context.Context, ev *auditinternal.Event) { … }
func processAuditEvent(ctx context.Context, sink audit.Sink, ev *auditinternal.Event, omitStages []auditinternal.Stage) bool { … }
func decorateResponseWriter(ctx context.Context, responseWriter http.ResponseWriter, ev *auditinternal.Event, sink audit.Sink, omitStages []auditinternal.Stage) http.ResponseWriter { … }
var _ …
var _ …
type auditResponseWriter …
func (a *auditResponseWriter) Unwrap() http.ResponseWriter { … }
func (a *auditResponseWriter) processCode(code int) { … }
func (a *auditResponseWriter) Write(bs []byte) (int, error) { … }
func (a *auditResponseWriter) WriteHeader(code int) { … }
func (a *auditResponseWriter) Hijack() (net.Conn, *bufio.ReadWriter, error) { … }