MCPcopy Create free account
hub / github.com/aws-samples/aws-lambda-extensions / HttpAgent

Struct HttpAgent

go-example-logs-api-extension/agent/http.go:101–104  ·  view source on GitHub ↗

HttpAgent has the listener that receives the logs and the logger that handles the received logs

Source from the content-addressed store, hash-verified

99
100// HttpAgent has the listener that receives the logs and the logger that handles the received logs
101type HttpAgent struct {
102 listener *LogsApiHttpListener
103 logger *S3Logger
104}
105
106// NewHttpAgent returns an agent to listen and handle logs coming from Logs API for HTTP
107// Make sure the agent is initialized by calling Init(agentId) before subscription for the Logs API.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected