Documentation
¶
Overview ¶
Package agentstate provides common state and configuration structures used across the CipherSwarm Agent.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrorLogger = Logger.With() //nolint:gochecknoglobals // Global error logger instance
ErrorLogger is a logger instance for logging critical errors with detailed error information.
View Source
var Logger = log.NewWithOptions(os.Stdout, log.Options{ Level: log.InfoLevel, ReportTimestamp: true, })
Logger is a shared logging instance configured to output logs at InfoLevel with timestamps to os.Stdout.
View Source
var State = agentState{} //nolint:gochecknoglobals // Global agent state
State represents the configuration and runtime state of the agent.
Functions ¶
This section is empty.
Types ¶
type Activity ¶
type Activity string
Activity represents the current state or action being carried out by an agent in the system.
const ( // CurrentActivityStarting indicates the agent is starting up. CurrentActivityStarting Activity = "starting" // CurrentActivityBenchmarking indicates the agent is running benchmarks. CurrentActivityBenchmarking Activity = "benchmarking" // CurrentActivityUpdating indicates the agent is updating its cracker. CurrentActivityUpdating Activity = "updating" // CurrentActivityWaiting indicates the agent is waiting for tasks. CurrentActivityWaiting Activity = "waiting" // CurrentActivityCracking indicates the agent is cracking hashes. CurrentActivityCracking Activity = "cracking" // CurrentActivityDownloading indicates the agent is downloading attack files. CurrentActivityDownloading Activity = "downloading" // CurrentActivityStopping indicates the agent is stopping. CurrentActivityStopping Activity = "stopping" )
Activity constants define the different states an agent can be in.
Click to show internal directories.
Click to hide internal directories.