cloudworker-proxy
Version:
An api gateway for cloudflare workers
79 lines (75 loc) • 1.77 kB
YAML
org: ORG_PLACEHOLDER
app: APP_PLACEHOLDER
service: SERVICE_PLACEHOLDER
provider:
name: aws
runtime: nodejs12.x
region: REGION_PLACEHOLDER
functions:
# NodeJS handlers
unresolved:
handler: handler.unresolved
syncError:
handler: handler.syncError
async:
handler: handler.async
asyncError:
handler: handler.asyncError
asyncDanglingCallback:
handler: handler.asyncDanglingCallback
callback:
handler: handler.callback
callbackError:
handler: handler.callbackError
noWaitForEmptyLoop:
handler: handler.noWaitForEmptyLoop
done:
handler: handler.done
doneError:
handler: handler.doneError
fail:
handler: handler.fail
succeed:
handler: handler.succeed
promise-and-callback-race:
handler: handler.promiseAndCallbackRace
spans:
handler: handler.spans
spans10:
handler: handler.spans
runtime: nodejs10.x
eventTags:
handler: handler.eventTags
setEndpoint:
handler: handler.setEndpoint
setEndpointWithHttpMetadata:
handler: handler.setEndpointWithHttpMetadata
timeout:
handler: handler.timeout
waitForEmptyLoop:
handler: handler.waitForEmptyLoop
# Python handlers
pythonSuccess:
handler: handler.success
runtime: python3.7
pythonSuccess2:
handler: handler.success
runtime: python2.7
pythonError:
handler: handler.error
runtime: python3.7
pythonHttpError:
handler: handler.http_error
runtime: python3.7
pythonEventTags:
handler: handler.event_tags
runtime: python3.7
pythonSetEndpoint:
handler: handler.set_endpoint
runtime: python3.7
pythonTimeout:
handler: handler.timeout
runtime: python3.7
pythonSubModule:
handler: submodule/handler.success
runtime: python3.7