Discover Packages
github.com/magisterquis/plonk
internal
server
state
package
Version:
v0.0.1-beta.2
Opens a new window with list of versions in this module.
Published: Jan 20, 2024
License: BSD-3-Clause
Opens a new window with license information.
Imports: 9
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
README
README
¶
Persistent State
Persistent state, stored between runs. Holds the task queue, etc.
Expand ▾
Collapse ▴
Documentation
¶
Package state - Persistent state
New returns a new State wrapped in a jpersist.Manager which is persisted to
the directory d. Write errors will be logged via sl.
NewTestState returns a new state suitable for testing. If an error is
encountered, NewTestState calls t.Fatalf.
State stores the state which persists between executions. It should not be
created directly; use New instead.
Saw updates s.LastSeen to note the ImplantID was just seen and from where.
It is the caller's responsibilty to ensure s's manager is properly locked.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.