Documentation ¶
Index ¶
- Constants
- Variables
- 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 HandleCardSync(a any, event contracts.Event) error
- func Register(e contracts.Event, l contracts.Listener)
- func RegisteredEvents() map[contracts.Event][]contracts.Listener
- type CardSync
- type EventAuditLogData
- type EventCardCreatedData
- type EventCardDeletedData
- type StringYamlPrettier
- type YamlPrettier
Constants ¶
View Source
const EventAuditLog contracts.Event = "audit_log"
Variables ¶
View Source
var EventCardCreated contracts.Event = "EventCardCreated"
View Source
var EventCardDeleted contracts.Event = "EventCardDeleted"
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 EventCardCreatedData ¶ added in v0.0.11
func (EventCardCreatedData) GetCard ¶ added in v0.0.11
func (d EventCardCreatedData) GetCard() *models.Card
type EventCardDeletedData ¶ added in v0.0.11
func (EventCardDeletedData) GetCard ¶ added in v0.0.11
func (d EventCardDeletedData) GetCard() *models.Card
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.