()
| 55 | } |
| 56 | |
| 57 | func 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 | |
| 76 | func main() { |
| 77 | algnhsa.ListenAndServe(controller.Engine, nil) |
nothing calls this directly
no test coverage detected