Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Audit ¶
type Audit struct {
// contains filtered or unexported fields
}
Audit is a new auditlogger to be used by service layer to log changes to entities
func (*Audit) Create ¶
func (al *Audit) Create(new interface{}, e *Environment, who Requester)
Create logs a created entity to auditlog
func (*Audit) Delete ¶
func (al *Audit) Delete(old interface{}, e *Environment, who Requester)
Delete logs a deleted entity to auditlog
func (*Audit) Update ¶
func (al *Audit) Update(old, new interface{}, e *Environment, who Requester)
Update logs an updated entity to auditlog
type Config ¶
type Config struct { // Database configuration Database cassandra.DatabaseConfig `yaml:"database"` // audit log configuration Logger shared.Logger `yaml:"logging"` }
Config holds configuration of an auditlog
type Environment ¶
Details of organization, developer and app this audit change applies to
Click to show internal directories.
Click to hide internal directories.