states

package
v0.18.3 Latest Latest
Warning

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

Go to latest
Published: Mar 17, 2026 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Init         = "Init"
	Watching     = "Watching"
	ChangeEvent  = "ChangeEvent"
	Refreshing   = "Refreshing"
	Refreshed    = "Refreshed"
	AllRefreshed = "AllRefreshed"

	DirDebounced = "DirDebounced"
	DirCached    = "DirCached"
)

Variables

Names is an ordered list of all the state names for files.

NamesDir is an ordered list of all the state names for directories.

View Source
var States = am.Schema{
	Init: {
		Add: S{Watching},
	},
	Watching: {
		Add:   S{Init},
		After: S{Init},
	},
	ChangeEvent: {
		Multi:   true,
		Require: S{Watching},
	},
	Refreshing: {
		Multi:  true,
		Remove: S{AllRefreshed},
	},
	Refreshed: {
		Multi: true,
	},
	AllRefreshed: {},
}

States map defines relations and properties of states (for files).

View Source
var StatesDir = am.Schema{
	Refreshing: {
		Remove: groupRefreshed,
	},
	Refreshed: {
		Remove: groupRefreshed,
	},
	DirDebounced: {
		Remove: groupRefreshed,
	},
	DirCached: {},
}

StatesDir map defines relations and properties of states (for directories).

Functions

This section is empty.

Types

type S

type S = am.S

S is a type alias for a list of state names.

Jump to

Keyboard shortcuts

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