Documentation ¶
Index ¶
Constants ¶
View Source
const (
//HeaderExtID is the header name for the extension identifier
HeaderExtID = "Lambda-Extension-Identifier"
)
Variables ¶
This section is empty.
Functions ¶
Types ¶
type HTTPClient ¶
HTTPClient represents an Http Client
type ID ¶
type ID string
ID is the extension ID within the AWS Lambda environment.
func RegisterExtension ¶
func RegisterExtension(runtimeURL string, registrationRoute string, timeout time.Duration) (ID, error)
RegisterExtension registers the serverless daemon and subscribe to INVOKE and SHUTDOWN messages. Returns either (the serverless ID assigned by the serverless daemon + the api key as read from the environment) or an error.
type LogSubscriptionPayload ¶
type LogSubscriptionPayload struct { Buffering buffering `json:"buffering"` Destination destination `json:"destination"` Types []string `json:"types"` SchemaVersion string `json:"schemaVersion"` }
LogSubscriptionPayload is the payload we send while subscribing to the AWS Logs API
func (*LogSubscriptionPayload) MarshalJSON ¶
func (p *LogSubscriptionPayload) MarshalJSON() ([]byte, error)
MarshalJSON marshals the given LogSubscriptionPayload object
Click to show internal directories.
Click to hide internal directories.