Documentation
¶
Overview ¶
Package service serves the audit log to administrators.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type EventService ¶
type EventService struct {
// contains filtered or unexported fields
}
EventService reads the audit log. Every call needs the audit:read permission: the log names what every user did.
func NewEventService ¶
func NewEventService(events *repository.EventRepository) *EventService
NewEventService returns a service over events.
func (*EventService) EntityTypes ¶
func (s *EventService) EntityTypes(ctx context.Context) ([]string, error)
EntityTypes lists the entity types the log holds events for.
func (*EventService) List ¶
func (s *EventService) List(ctx context.Context, q *dto.EventQuery) (*dto.EventPage, error)
List returns one page of events matching q, newest first.