eventprocessor

package
v0.0.0-nl1687530930 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 23, 2023 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (

	// ShutdownReasonFieldExtensionType is the field name for shutdown reason in shutdown reason event
	ShutdownReasonFieldExtensionType = "lambda_extension.type"
	// ShutdownReasonFieldRequestID is the field name used for request ID in shutdown reason event
	ShutdownReasonFieldRequestID = "requestId"
	// ShutdownReasonFieldInvokedFunctionARN is the field name used for function arn in shutdown reason event
	ShutdownReasonFieldInvokedFunctionARN = "invokedFunctionArn"
)

Functions

This section is empty.

Types

type Server

type Server struct {
	// contains filtered or unexported fields
}

Server represents a server that polls and processes Lambda extension events

func New

func New(extensionClient eventPoller, libhoneyClient eventFlusher) *Server

New takes an eventPoller and eventFlusher and returns a Server

func (*Server) Run

func (s *Server) Run(ctx context.Context, cancel context.CancelFunc)

Run executes an event loop to poll and process events from the Lambda extension API

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL