Documentation ¶
Index ¶
Constants ¶
View Source
const CONNECT_TIMEOUT = 3 * time.Second
View Source
const HEARTBEAT_JITTER = 3 * time.Minute
View Source
const HEARTBEAT_TIMEOUT = 5 * time.Minute
The maximum time to wait between heartbeats without disconnecting
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AckRequest ¶
type AgentCommunicationClient ¶
type AgentCommunicationClient struct {
// contains filtered or unexported fields
}
AgentCommunicationClient is a client that keeps track of connections to the AgentCommunication backend service. It stores configuration needed to connect and its current connection
func NewAgentCommunicationClient ¶
func NewAgentCommunicationClient(endpoint string, cfg *config.Config, credentialProvider credentials.AWSCredentialProvider, containerInstanceArn string) *AgentCommunicationClient
func (*AgentCommunicationClient) Ack ¶
func (acc *AgentCommunicationClient) Ack(message *Payload) bool
Ack acknowledges that a given message was recieved. It is expected to be called after Poll such that Poll has already opened a websocket connection.
type HealthResponse ¶
type HealthResponse struct {
Healthy bool `json:"healthy"`
}
type PollCallback ¶
type PollResponse ¶
Click to show internal directories.
Click to hide internal directories.