writefrequency

package
v0.3.2 Latest Latest
Warning

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

Go to latest
Published: Jun 6, 2026 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Frequency

type Frequency struct {
	Mode  Mode
	Every int
	Raw   string
}

Frequency is the parsed plugin memory write cadence.

func Parse

func Parse(raw any) Frequency

Parse converts a plugin config value into a write frequency.

type Mode

type Mode string

Mode identifies when plugin memory writes should be flushed.

const (
	Invalid Mode = "invalid"
	Async   Mode = "async"
	Turn    Mode = "turn"
	Session Mode = "session"
	Every   Mode = "every"
)

Jump to

Keyboard shortcuts

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