MCPcopy Create free account
hub / github.com/dan-v/lambda-nat-proxy / init

Function init

lambda/main.go:22–31  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

20var s3Client *s3.S3
21
22func init() {
23 // Initialize structured logging for Lambda
24 shared.InitLogger(&shared.LogConfig{
25 Level: shared.LevelInfo,
26 Format: "json", // JSON format for Lambda logs
27 AddSource: true,
28 ServiceName: "lambda-nat-proxy",
29 })
30 // S3 client will be initialized lazily in getS3Client()
31}
32
33// getS3Client returns the S3 client, initializing it if necessary
34func getS3Client() (*s3.S3, error) {

Callers

nothing calls this directly

Calls 1

InitLoggerFunction · 0.92

Tested by

no test coverage detected