# README
dindenault
Implementation example
import "github.com/navigacontentlab/dindenault"
app := dindenault.New(logger,
dindenault.WithService(rpcconnect.FirstServiceHandler(firstService)),
dindenault.WithService(rpcconnect.SecondServiceHandler(secondService)),
dindenault.WithMiddleware(
dindenault.WithLogging(logger),
dindenault.WithXRay("projectname"),
),
)
lambda.Start(app.Handle())
# Packages
No description provided by the author
# Functions
DefaultCORSDomains returns the default allowed domain suffixes.
DefaultCorsMiddleware creates a middleware with the default settings.
New creates a new App with the given options.
NewCORSMiddleware creates a CORS middleware suitable for our editorial application APIs.
WithCORS returns a middleware that adds CORS headers.
WithLogging returns a middleware that logs requests.
WithMiddleware adds middleware to the app.
WithOpenTelemetry returns a middleware that adds OpenTelemetry tracing.
WithService adds a Connect service to the app.
WithXRay returns a middleware that adds AWS X-Ray tracing.
# Structs
App handles Connect services in Lambda.
CORSOptions controls the behaviour of the CORS middleware.
Registration represents a Connect service registration.
# Type aliases
Middleware is a function that wraps a http.Handler.
Option is a function that configures the App.