orderaudit

package
v1.20.3 Latest Latest
Warning

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

Go to latest
Published: Sep 19, 2026 License: GPL-3.0 Imports: 8 Imported by: 0

Documentation

Overview

Package orderaudit writes the durable audit record created alongside an order. Callers invoke it with the transaction-scoped log repository so the order and its audit row commit or roll back together.

Index

Constants

View Source
const (
	SourceUser  = "user"
	SourceGuest = "guest"
	SourceAdmin = "admin"
)

Variables

This section is empty.

Functions

func InsertCreated

func InsertCreated(ctx context.Context, logs repository.LogRepo, data *order.Order, source string) error

InsertCreated stores a safe order summary and request risk metadata.

Types

This section is empty.

Jump to

Keyboard shortcuts

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