Skip to main content

DigitalOceanHandler

@h4ad/serverless-adapter > DigitalOceanHandler

(class) DigitalOceanHandler

The class that implements a serverless handler for Digital Ocean Functions.

Signature:

export declare class DigitalOceanHandler<TApp, TEvent, TResponse, TReturn> extends DefaultHandler<TApp, TEvent, void, void, TResponse, TReturn> 

Extends: DefaultHandler <TApp, TEvent, void, void, TResponse, TReturn>

(method) getHandler

Signature:

getHandler(app: TApp, framework: FrameworkContract<TApp>, adapters: AdapterContract<TEvent, void, TResponse>[], resolverFactory: ResolverContract<TEvent, void, void, TResponse, TReturn>, binarySettings: BinarySettings, respondWithErrors: boolean, log: ILogger): ServerlessHandler<TReturn>;

Parameters

Parameter

Type

Description

app

TApp

framework

FrameworkContract <TApp>

adapters

AdapterContract <TEvent, void, TResponse>[]

resolverFactory

ResolverContract <TEvent, void, void, TResponse, TReturn>

binarySettings

BinarySettings

respondWithErrors

boolean

log

ILogger

Returns:

ServerlessHandler <TReturn>