usecase
go
import "github.com/prescriptoo/prescriptoo-api/services/audit/internal/usecase"Package usecase enforces scoped audit read permissions.
Index
type Service
Service enforces audit read grants before accessing persisted history.
go
type Service struct {
Lister p.EventLister
Reader p.EventReader
Admin auth.AdminPermissionChecker
Organization auth.OrganizationPermissionChecker
}func (*Service) GetEvent
go
func (s *Service) GetEvent(ctx context.Context, in p.EventQuery) (*p.Event, error)GetEvent returns an immutable event only within the requested history.
func (*Service) ListEvents
go
func (s *Service) ListEvents(ctx context.Context, in p.ListInput) (*p.Page, error)ListEvents returns scoped event summaries in stable descending order.
Generated by gomarkdoc