Documentation ¶
Index ¶
Constants ¶
View Source
const ( ErrorLogMessageType = "error" AuditLogMessageType = "audit" SignInMessageType = "signin" AuditLoginAction = "login" AuditUpdateAction = "update" AuditDeleteAction = "delete" AuditLogoutAction = "logout" )
View Source
const EmptyRequestObjectErrorMessage = "no request object was set to get %s"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AuditItem ¶
type AuditItem struct { Cod string `json:"cod"` Id string `json:"id"` Token string `json:"token"` Login string `json:"login"` ServiceName string `json:"serviceName"` File string `json:"file"` Ip string `json:"ip"` UserAgent string `json:"userAgent"` Action string `json:"action"` Referer string `json:"referer"` Route string `json:"route"` StateBefore string `json:"stateBefore"` StateAfter string `json:"stateAfter"` CustomParameters string `json:"customParameters"` Type string `json:"type"` }
func NewAuditItem ¶
func NewAuditItem() *AuditItem
type AuditLogger ¶
func NewAuditLogger ¶
func NewAuditLogger(c gqueue.Config) *AuditLogger
func (*AuditLogger) SendAuditLog ¶
func (a *AuditLogger) SendAuditLog(item AuditItem) error
func (*AuditLogger) SetRequest ¶
func (a *AuditLogger) SetRequest(r *http.Request)
Click to show internal directories.
Click to hide internal directories.