Documentation ¶
Index ¶
- func ArrayIndexForObjectIndex(arrayOfObjects []map[string]any, objectIndex int64) int
- func CheckToFormatForAuditEvent(changes map[string]any, original any, new any, field string, objectKey string, ...) (didInsert bool)
- func ChildObjectChanges(changes map[string]any, objectPath string, fieldPath string, changeFrom any, ...)
- func GetAllChanges(original any, new any) (map[string]any, error)
- func GetChanges(original any, new any) (map[string]any, error)
- func GetIntValue(object any, key string) int64
- func GetStringValue(object any, key string) string
- func ToSnakeCase(str string) string
- func VerifyAuditEvents(original any, new any) error
- type FieldChange
- type IAuditFormatter
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ArrayIndexForObjectIndex ¶
ArrayIndexForObjectIndex gets the index of arrayOfObjects where the object's index field is equal to objectIndex.
func CheckToFormatForAuditEvent ¶ added in v1.236.0
func ChildObjectChanges ¶
func GetAllChanges ¶
GetAllChanges Returns the diff, structured in json, recursively Be warned, here be dragons. Debug this first to understand how it works
func GetIntValue ¶
func GetStringValue ¶
func ToSnakeCase ¶
func VerifyAuditEvents ¶ added in v1.54.0
Types ¶
type FieldChange ¶
type IAuditFormatter ¶ added in v1.236.0
type IAuditFormatter interface {
FormatForAuditEvent() string
}
Click to show internal directories.
Click to hide internal directories.