memory

package
v0.25.0 Latest Latest
Warning

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

Go to latest
Published: Apr 22, 2026 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	MemoryBackendName = "memory"
)

Variables

This section is empty.

Functions

func NewMemory

func NewMemory(c auditing.Config, mc MemoryConfig) (auditing.Auditing, error)

NewMemory returns a new auditing backend that runs in memory. The main intention of this backend is to be used for testing purposes to avoid mocking.

Please note that this backend is not intended to be used for production because it is ephemeral and it is not guaranteed to have feature-parity with other auditing backends.

Types

type MemoryConfig

type MemoryConfig struct{}

Jump to

Keyboard shortcuts

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