agentstate

package
v0.6.2 Latest Latest
Warning

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

Go to latest
Published: Jun 29, 2026 License: Apache-2.0 Imports: 6 Imported by: 0

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.

Jump to

Keyboard shortcuts

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