Documentation
¶
Index ¶
- Constants
- type AuthAudit
- func (aa *AuthAudit) BeforeChange() error
- func (aa *AuthAudit) BeforeCreate() error
- func (aa *AuthAudit) GetEvent() string
- func (aa *AuthAudit) GetEventDate() time.Time
- func (aa *AuthAudit) GetID() string
- func (aa *AuthAudit) GetRequestID() string
- func (aa *AuthAudit) GetSource() string
- func (aa *AuthAudit) GetStatus() string
- func (aa *AuthAudit) GetTraceID() string
- func (aa *AuthAudit) GetUsername() string
- func (aa *AuthAudit) IsExists() bool
- func (aa *AuthAudit) SetID(id string)
- func (aa *AuthAudit) ValidateChange() error
- func (aa *AuthAudit) ValidateCreate() error
- type AuthAuditRepository
- type DataAudit
- func (da *DataAudit) BeforeChange() error
- func (da *DataAudit) BeforeCreate() error
- func (da *DataAudit) GetEvent() string
- func (da *DataAudit) GetEventDate() time.Time
- func (da *DataAudit) GetID() string
- func (da *DataAudit) GetRequestID() string
- func (da *DataAudit) GetSource() string
- func (da *DataAudit) GetStatus() string
- func (da *DataAudit) GetTraceID() string
- func (da *DataAudit) GetUsername() string
- func (da *DataAudit) IsExists() bool
- func (da *DataAudit) SetID(id string)
- func (da *DataAudit) ValidateChange() error
- func (da *DataAudit) ValidateCreate() error
- type DataAuditRepository
- type DataAuditValue
- type TailRepository
Constants ¶
View Source
const ( AuditStatusSuccess string = "success" AuditStatusFail string = "fail" )
View Source
const ( AuthEventLogin string = "login" AuthEventLogoff string = "logoff" AuthEventRefresh string = "refresh" AuthEventRevoke string = "revoke" )
View Source
const ( DataEventCreate string = "create" DataEventChange string = "change" DataEventRemove string = "remove" )
View Source
const ( RoleWriter string = "audit-writer" RoleReader string = "audit-reader" RoleAdmin string = "audit-admin" )
application roles
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AuthAudit ¶
type AuthAudit struct {
ID string
Source string
EventDate time.Time
Event string
Status string
RequestID string
TraceID string
Username string
AccessToken string
RefreshToken string
CreatedAt time.Time
UpdatedAt time.Time
}
func NewEmptyAuthAudit ¶
func NewEmptyAuthAudit() *AuthAudit
func (*AuthAudit) BeforeChange ¶
func (*AuthAudit) BeforeCreate ¶
func (*AuthAudit) GetEventDate ¶
func (*AuthAudit) GetRequestID ¶
func (*AuthAudit) GetTraceID ¶ added in v0.0.2
func (*AuthAudit) GetUsername ¶
func (*AuthAudit) ValidateChange ¶
func (*AuthAudit) ValidateCreate ¶
type AuthAuditRepository ¶
type DataAudit ¶
type DataAudit struct {
ID string
Source string
EventDate time.Time
Event string
Status string
RequestID string
TraceID string
Username string
TypeName string
TypeDescription string
InstanceID string
InstanceName string
Values []*DataAuditValue
CreatedAt time.Time
UpdatedAt time.Time
}
func NewEmptyDataAudit ¶
func NewEmptyDataAudit() *DataAudit
func (*DataAudit) BeforeChange ¶
func (*DataAudit) BeforeCreate ¶
func (*DataAudit) GetEventDate ¶
func (*DataAudit) GetRequestID ¶
func (*DataAudit) GetTraceID ¶ added in v0.0.2
func (*DataAudit) GetUsername ¶
func (*DataAudit) ValidateChange ¶
func (*DataAudit) ValidateCreate ¶
type DataAuditRepository ¶
type DataAuditValue ¶
func (*DataAuditValue) ValidateChange ¶
func (dav *DataAuditValue) ValidateChange() error
func (*DataAuditValue) ValidateCreate ¶
func (dav *DataAuditValue) ValidateCreate() error
Source Files
¶
Click to show internal directories.
Click to hide internal directories.