Documentation ¶
Index ¶
- Constants
- func AuditLog(username string, action eventpb.ActionType, msg string, ...)
- func FileAuditLog(username string, msg string, fileId int)
- func HandleAuditLog(data any, e contracts.Event) error
- func Register(e contracts.Event, l contracts.Listener)
- func RegisteredEvents() map[contracts.Event][]contracts.Listener
- type EventAuditLogData
- type StringYamlPrettier
- type YamlPrettier
Constants ¶
View Source
const EventAuditLog contracts.Event = "audit_log"
Variables ¶
This section is empty.
Functions ¶
func AuditLog ¶
func AuditLog(username string, action eventpb.ActionType, msg string, oldS, newS YamlPrettier)
func FileAuditLog ¶
Types ¶
type EventAuditLogData ¶
type EventAuditLogData struct { Username string Action eventpb.ActionType Msg, OldS, NewS string FileId int }
type StringYamlPrettier ¶
type StringYamlPrettier struct {
Str string
}
func (*StringYamlPrettier) PrettyYaml ¶
func (s *StringYamlPrettier) PrettyYaml() string
type YamlPrettier ¶
type YamlPrettier interface {
PrettyYaml() string
}
Click to show internal directories.
Click to hide internal directories.