Versions in this module Expand all Collapse all v0 v0.3.0 Aug 26, 2026 Changes in this version + type Event struct + ActorID string + Email string + IPAddress string + Metadata map[string]any + Result Result + TargetID string + Type EventType + UserAgent string + type EventType string + const EventDeviceApproved + const EventDeviceDenied + const EventPATCreated + const EventPATRevoked + const EventSuperuserCreated + const EventSuperuserDeactivated + const EventSuperuserImpersonated + const EventSuperuserLoginFailed + const EventSuperuserLoginLocked + const EventSuperuserLoginSucceeded + const EventSuperuserLogout + const EventSuperuserTokenRefreshed + const EventTeamCreated + const EventTeamInvitationAccepted + const EventTeamInvitationCreated + const EventTeamInvitationRevoked + const EventTeamMemberRemoved + const EventTeamMemberRoleChanged + const EventTeamMemberStatusChanged + const EventUserEmailVerified + const EventUserLoginFailed + const EventUserLoginLocked + const EventUserLoginSucceeded + const EventUserLogout + const EventUserPasswordChanged + const EventUserPasswordReset + const EventUserRegistered + const EventUserSessionRevoked + const EventUserTokenRefreshed + const EventUserTwoFactorDisabled + const EventUserTwoFactorEnabled + type Logger interface + Log func(ctx context.Context, event Event) + type NoopLogger struct + func (NoopLogger) Log(context.Context, Event) + type Result string + const ResultDenied + const ResultFailure + const ResultSuccess + type SlogLogger struct + Logger *slog.Logger + func (l SlogLogger) Log(ctx context.Context, event Event) v0.2.0 Aug 25, 2026