Documentation ¶
Index ¶
Constants ¶
View Source
const AgentVersion string = "paragon-v0.1.1"
AgentVersion represents a unique agent version string to identify the agent.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Agent ¶
type Agent struct { transport.TaskExecutor transport.AgentMessageWriter Log *zap.Logger Metadata transport.AgentMetadata MaxIdleTime time.Duration // contains filtered or unexported fields }
Agent provides a standard flow for receiving tasks, writing results, and sending output.
func (*Agent) WriteServerMessage ¶ added in v0.3.0
func (agent *Agent) WriteServerMessage(ctx context.Context, msg transport.ServerMessage)
WriteServerMessage will spawn go routines to execute each task provided by the server.
Click to show internal directories.
Click to hide internal directories.