(handler *handlerOptions)
| 100 | } |
| 101 | |
| 102 | func start(handler *handlerOptions) { |
| 103 | var keys []string |
| 104 | for _, start := range startFunctions { |
| 105 | config := os.Getenv(start.env) |
| 106 | if config != "" { |
| 107 | // in normal operation, the start function never returns |
| 108 | // if it does, exit!, this triggers a restart of the lambda function |
| 109 | err := start.f(config, handler) |
| 110 | logFatalf("%v", err) |
| 111 | } |
| 112 | keys = append(keys, start.env) |
| 113 | } |
| 114 | logFatalf("expected AWS Lambda environment variables %s are not defined", keys) |
| 115 | |
| 116 | } |
no outgoing calls
no test coverage detected
searching dependent graphs…