app

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Nov 3, 2026 License: MIT Imports: 12 Imported by: 0

Documentation

Overview

Package app wires the function together from its configuration. It is the only package that knows about every other one; main and the devtool CLI call it, and tests use its options to replace the Cognito client and the HTTP client.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(ctx context.Context, cfg *config.Config, awsCfg aws.Config, opts ...Option) (*handler.Handler, error)

New builds the Lambda handler. It compiles the policies and creates every client up front, so configuration problems surface at startup.

Types

type Option

type Option func(*deps)

Option replaces a dependency that New would otherwise build from the configuration and AWS config.

func WithCognitoClient

func WithCognitoClient(c postconfirmation.CognitoAPI) Option

WithCognitoClient replaces the Cognito client the PostConfirmation hook calls.

func WithHTTPClient

func WithHTTPClient(c *http.Client) Option

WithHTTPClient sets the HTTP client used for SendGrid.

Jump to

Keyboard shortcuts

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