23 lines
274 B
Go
23 lines
274 B
Go
package authorization
|
|
|
|
import (
|
|
"time"
|
|
|
|
"somehole.com/common/security/identity"
|
|
)
|
|
|
|
type record struct {
|
|
Verb
|
|
Noun
|
|
time.Time
|
|
}
|
|
|
|
type AuditService struct {
|
|
records map[identity.Id][]record
|
|
}
|
|
|
|
func NewAuditService() (srv *AuditService) {
|
|
srv = &AuditService{}
|
|
return
|
|
}
|