audit

package
v0.26.1 Latest Latest
Warning

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

Go to latest
Published: Jul 15, 2026 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const (
	HeaderAuthor   = "x-author"
	HeaderSource   = "x-source"
	HeaderMetadata = "x-metadata"
)

Variables

This section is empty.

Functions

func ToContext

func ToContext(ctx context.Context, origin ChangeOrigin) context.Context

Types

type ChangeMetadata

type ChangeMetadata map[string]string

type ChangeOrigin

type ChangeOrigin struct {
	Author   string
	Source   string
	Metadata ChangeMetadata
}

func FromContext

func FromContext(ctx context.Context) ChangeOrigin

func NewChangeOrigin

func NewChangeOrigin(author, source string, metadata ChangeMetadata) ChangeOrigin

Jump to

Keyboard shortcuts

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