auditlog

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Aug 26, 2026 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Event

type Event struct {
	ID             uint64    `json:"id"`
	OccurredAt     time.Time `json:"occurred_at"`
	Username       string    `json:"username"`
	Method         string    `json:"method"`
	Path           string    `json:"path"`
	ResponseStatus int       `json:"response_status"`
	RemoteAddress  string    `json:"remote_address"`
	DurationMS     int64     `json:"duration_ms"`
	Operation      string    `json:"operation"`
	Resource       string    `json:"resource"`
	Target         string    `json:"target"`
	Summary        string    `json:"summary"`
	Successful     bool      `json:"successful"`
}

func Enrich

func Enrich(event Event) Event

type Page

type Page struct {
	Items    []Event `json:"items"`
	Total    int64   `json:"total"`
	Page     int     `json:"page"`
	PageSize int     `json:"page_size"`
}

type Query

type Query struct {
	Username      string
	Method        string
	Result        string
	Keyword       string
	IncludeSystem bool
	From          *time.Time
	To            *time.Time
	Page          int
	PageSize      int
}

Jump to

Keyboard shortcuts

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