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.
Click to show internal directories.
Click to hide internal directories.