StartHandler takes in a Handler wrapper interface which can be implemented either by a custom function or a struct. Handler implementation requires a single "Invoke()" function: func Invoke(context.Context, []byte) ([]byte, error) Deprecated: use lambda.Start(handler) instead
(handler Handler)
| 64 | // |
| 65 | // Deprecated: use lambda.Start(handler) instead |
| 66 | func StartHandler(handler Handler) { |
| 67 | StartWithOptions(handler) |
| 68 | } |
| 69 | |
| 70 | // StartWithOptions is the same as Start after the application of any handler options specified |
| 71 | func StartWithOptions(handler interface{}, options ...Option) { |
no test coverage detected
searching dependent graphs…