auditlog

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Oct 15, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const AUDITLOG_STATS_DIR = "stats"
View Source
const TIMESTAMP_FORMAT = "2006-01-02T15:04:05"

Variables

This section is empty.

Functions

func Write

func Write(storage storage.Iface, logEntry LogEntry) error

Types

type LogEntry

type LogEntry struct {
	Timestamp LogTimestamp `json:"timestamp"`
	UserID    string       `json:"userID"`
	Action    string       `json:"action"`
}

type LogTimestamp

type LogTimestamp time.Time

func (LogTimestamp) MarshalJSON

func (t LogTimestamp) MarshalJSON() ([]byte, error)

Jump to

Keyboard shortcuts

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