audit

package
v0.0.0-...-c407d37 Latest Latest
Warning

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

Go to latest
Published: Apr 12, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RetrieveAuditUserIDFromContext

func RetrieveAuditUserIDFromContext(ctx context.Context) uuid.UUID

RetrieveAuditUserIDFromContext returns the auditUserID associated with a context. If the context has no auditUser, the empty user model is returned

func RetrieveEventNameFromContext

func RetrieveEventNameFromContext(ctx context.Context) string

RetrieveEventNameFromContext returns the operationId associated with a context. If the context has no operationId, the empty string is returned

func WithAuditUserID

func WithAuditUserID(ctx context.Context, userID uuid.UUID) context.Context

WithAuditUserID returns a new context with the auditUserID.

func WithEventName

func WithEventName(ctx context.Context, operationID string) context.Context

WithEventName returns a new context with the operationId.

Types

This section is empty.

Jump to

Keyboard shortcuts

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