activitylog

package
v0.2.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 28, 2026 License: MIT Imports: 6 Imported by: 0

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL