Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func LogCreatedSuccess ¶
func LogCreatedSuccess(entityName string, attributes interface{})
LogCreatedSuccess registers successful creation logs
func LogDeletedSuccess ¶
func LogDeletedSuccess(entityName string, attributes interface{})
LogDeletedSuccess registers successful deletion logs
func LogUpdatedSuccess ¶
func LogUpdatedSuccess(entityName string, attributes interface{})
LogUpdatedSuccess registers successful update logs
Types ¶
type ActionLog ¶
type ActionLog struct { Timestamp string `json:"timestamp"` ActionType string `json:"action_type"` EntityName string `json:"entity_name"` Attributes interface{} `json:"attributes"` }
Structure to represent the action log as JSON
type ActionType ¶
type ActionType int
ActionType defines possible action types
const ( Create ActionType = iota Update Delete )
Click to show internal directories.
Click to hide internal directories.