audit

package
v0.2.47 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 4, 2024 License: Apache-2.0 Imports: 10 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Middleware

func Middleware(openapi *openapi.Schema, application, version string) func(http.Handler) http.Handler

Types

type Actor

type Actor struct {
	Subject string `json:"subject"`
}

type Component

type Component struct {
	Name    string `json:"name"`
	Version string `json:"version"`
}

type Logger

type Logger struct {
	// contains filtered or unexported fields
}

func New

func New(next http.Handler, openapi *openapi.Schema, application, version string) *Logger

New returns an initialized middleware.

func (*Logger) ServeHTTP

func (l *Logger) ServeHTTP(w http.ResponseWriter, r *http.Request)

ServeHTTP implements the http.Handler interface.

type Operation

type Operation struct {
	Verb string `json:"verb"`
}

type Resource

type Resource struct {
	Type string `json:"type"`
	ID   string `json:"id,omitempty"`
}

type Result

type Result struct {
	Status int `json:"status"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL