state

package
v0.0.0-...-0d7fd1c Latest Latest
Warning

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

Go to latest
Published: Jun 13, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AgentMode

type AgentMode struct {
	UUID string // agent UUID
	Name string // agent name
	CWD  string // current working directory of agent
}

type ServerState

type ServerState struct {
	Conf      *config.ServerConfig
	CWD       string // Current working directory
	NumCPU    int    // Number of CPU usable at runtime
	DB        *db.Database
	Job       *job.Job
	Parser    *kong.Kong
	Operator  *operator.Operator // Current operator
	AgentMode *AgentMode
	Continue  bool // Is console continue or not
}

func NewServerState

func NewServerState(conf *config.ServerConfig, db *db.Database, job *job.Job) (*ServerState, error)

Jump to

Keyboard shortcuts

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