Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( TimeNow = time.Now ErrInvalidMetadata = errors.New("failed to cast existing metadata to map[string]interface{} type") )
Functions ¶
Types ¶
type AuditOption ¶
type AuditOption func(*Service)
func WithActorExtractor ¶
func WithActorExtractor(fn func(context.Context) (string, error)) AuditOption
func WithMetadataExtractor ¶
func WithMetadataExtractor(fn func(context.Context) map[string]interface{}) AuditOption
func WithRepository ¶
func WithRepository(r repository) AuditOption
Click to show internal directories.
Click to hide internal directories.