audit

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: May 19, 2026 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetEventDescription

func GetEventDescription(e AuditEvent) string

func LogEvent

func LogEvent(data LogData, dbPassword string) error

func SaveAuditLogChecksum

func SaveAuditLogChecksum(logName string, dbPassword string) error

Types

type AuditEvent

type AuditEvent int
const (
	ConnectionOpened AuditEvent = iota
	ConnectionClosed
	DataReceived
	UserAccessed
	DataSaved
	FailedLogin
	SuccessfulLogin
	UserRegistered
)

func (AuditEvent) String

func (e AuditEvent) String() string

type LogData

type LogData struct {
	Event      AuditEvent
	User       string
	Details    string
	IncomingIP string
	Timestamp  string
	Subject    string
}

Jump to

Keyboard shortcuts

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