Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewDatabaseDriver ¶
NewDatabaseDriver returns an audit log driver that records entries in the database.
func NewLogDriver ¶
func NewLogDriver(config LogDriverConfig, logger Logger) auditlog.Driver
NewLogDriver returns a standard output audit log driver.
Types ¶
type EntryModel ¶
type EntryModel struct { ID uint `gorm:"primary_key"` Time time.Time `gorm:"index"` CorrelationID string `gorm:"size:36"` ClientIP string `gorm:"size:45"` UserAgent string Path string `gorm:"size:8000"` Method string `gorm:"size:7"` UserID uint StatusCode int Body *string `gorm:"type:json"` Headers string `gorm:"type:json"` ResponseTime int ResponseSize int Errors *string `gorm:"type:json"` }
EntryModel holds all information related to a user interaction.
func (EntryModel) TableName ¶
func (EntryModel) TableName() string
TableName specifies a database table name for the model.
type LogDriverConfig ¶
LogDriverConfig configures a standard output audit log driver.
Click to show internal directories.
Click to hide internal directories.