actor

package
v0.36.0 Latest Latest
Warning

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

Go to latest
Published: Oct 17, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

Package actor resolves the identity attributed to an audited mutation.

Index

Constants

View Source
const Unknown = "unknown"

Variables

View Source
var (
	ErrNotFound = errors.New("actor profile not found")
	ErrArchived = errors.New("actor profile is archived")
)

Functions

func Resolve

func Resolve(ctx context.Context, database QueryRower, value string) (string, error)

Resolve returns the stable profile ID to persist in an audit event. An empty actor retains the backwards-compatible unknown attribution.

Types

type QueryRower

type QueryRower interface {
	QueryRowContext(context.Context, string, ...any) *sql.Row
}

QueryRower is the database capability needed to resolve an actor.

Jump to

Keyboard shortcuts

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