Documentation ¶
Index ¶
- func ArrayIndexForObjectIndex(arrayOfObjects []map[string]interface{}, objectIndex int64) int
- func ChildObjectChanges(changes map[string]interface{}, objectPath string, fieldPath string, ...)
- func GetAllChanges(original interface{}, new interface{}) (map[string]interface{}, error)
- func GetChanges(original interface{}, new interface{}) (map[string]interface{}, error)
- func GetIntValue(object interface{}, key string) int64
- func GetStringValue(object interface{}, key string) string
- func ToSnakeCase(str string) string
- func VerifyAuditEvents(original interface{}, new interface{}) error
- type FieldChange
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 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 GetChanges ¶
func GetIntValue ¶
func GetStringValue ¶
func ToSnakeCase ¶
func VerifyAuditEvents ¶ added in v1.54.0
func VerifyAuditEvents(original interface{}, new interface{}) error
Types ¶
type FieldChange ¶
type FieldChange struct { From interface{} `json:"change_from"` To interface{} `json:"change_to"` }
Click to show internal directories.
Click to hide internal directories.