Documentation
¶
Index ¶
Constants ¶
const ( PINGPONG = "pingpong" HOSTINFO = "hostinfo" )
PINGPONG name literal
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Agent ¶
type Agent struct { Host Host ServiceConnection *websocket.Conn BinDir string TempDir string // contains filtered or unexported fields }
Agent represents an instance of the CC Agent
func GetHostAgent ¶
func GetHostAgent() (agent *Agent)
GetHostAgent returns the Agent singleton for the host
func (*Agent) ProcessRequest ¶
func (agent *Agent) ProcessRequest(managementServiceRequest lib.CCServiceRequest) (err error)
ProcessRequest processes the command received via the CC Service
type Command ¶
type Command struct {
// contains filtered or unexported fields
}
Command is a command object for Components
type CommandStatus ¶
type CommandStatus int
CommandStatus for tracking status of commands
const ( START CommandStatus = 0 COMPLETED CommandStatus = 1 FAILED CommandStatus = 2 )
START, COMPLETED, FAILED are command status values
func (CommandStatus) String ¶
func (status CommandStatus) String() string
String returns the string value for the command status
type Component ¶
type Component struct {
// contains filtered or unexported fields
}
Component base structure inherited by all CC Components
type Instance ¶
type Instance struct {
// contains filtered or unexported fields
}
Instance represents a Component Instance (component + algod node)
type PingPongComponentInstance ¶
type PingPongComponentInstance struct {
// contains filtered or unexported fields
}
PingPongComponentInstance extends component instance supports management of ping pong instances
func (*PingPongComponentInstance) Init ¶
func (componentInstance *PingPongComponentInstance) Init() (err error)
Init the PingPong instance
func (*PingPongComponentInstance) Process ¶
func (componentInstance *PingPongComponentInstance) Process(command Command) (err error)
Process the ping pong instance
func (*PingPongComponentInstance) Terminate ¶
func (componentInstance *PingPongComponentInstance) Terminate() (err error)
Terminate the ping pong instance