security/authorization/audit.go

23 lines
274 B
Go
Raw Normal View History

2024-09-30 23:02:10 +00:00
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
}