MCPcopy Create free account
hub / github.com/NextDotID/proof_server / init

Function init

cmd/lambda/main.go:57–74  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

55}
56
57func init() {
58 cfg, err := config.LoadDefaultConfig(
59 context.Background(),
60 // TODO: change region
61 config.WithRegion("ap-east-1"),
62 )
63 if err != nil {
64 logrus.Fatalf("Unable to load AWS config: %s", err)
65 }
66 init_config_from_aws_secret()
67 logrus.SetLevel(logrus.WarnLevel)
68 common.CurrentRuntime = common.Runtimes.Lambda
69
70 init_db(cfg)
71 init_sqs(cfg)
72 init_validators()
73 controller.Init()
74}
75
76func main() {
77 algnhsa.ListenAndServe(controller.Engine, nil)

Callers

nothing calls this directly

Calls 5

InitFunction · 0.92
init_sqsFunction · 0.85
init_dbFunction · 0.70
init_validatorsFunction · 0.70

Tested by

no test coverage detected