Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Audit ¶
type Audit struct {
CreateClient client.Client
CreateUser usr.User
CreateTimestamp time.Time
UpdateClient client.Client
UpdateUser usr.User
UpdateTimestamp time.Time
}
Audit represents fields meant to track when an action was taken and by whom
func NewForCreate ¶ added in v0.6.4
NewForCreate is a constructor that takes a Client and User and populates CreateClient, CreateUser, UpdateClient and UpdateUser (as they all should be the same)
func NewFromContext ¶ added in v0.7.0
NewFromContext is a constructor that takes a Client and User set to the Context and populates CreateClient, CreateUser, UpdateClient and UpdateUser (as they all should be the same for creates)
func TestDBAuditHelper ¶ added in v0.6.4
TestDBAuditHelper is a constructor for a dbAudit struct populating it with test data
Click to show internal directories.
Click to hide internal directories.