Documentation
¶
Overview ¶
Package activitylog provides shared activity log application services.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ActorIDFrom ¶
func ActorIDFrom(actor *authorization.Actor) uuid.UUID
ActorIDFrom extracts the actor UUID from an authorization.Actor.
func ActorTypeFrom ¶
func ActorTypeFrom(actor *authorization.Actor) al.ActorType
ActorTypeFrom maps an authorization.Actor to an activitylog ActorType.
Types ¶
type ActivityLog ¶
type ActivityLog interface {
Log(ctx context.Context, entry *al.Entry) error
List(ctx context.Context, filter *al.ListFilter) (*al.ListResult, error)
}
func New ¶
func New(clock clock.Clock, repository al.Repository) ActivityLog
Click to show internal directories.
Click to hide internal directories.