valory-adaptor-fastify
Version:
Fastify adaptor for valory
13 lines (12 loc) • 502 B
TypeScript
import { ApiResponse, ApiServer, HttpMethod, ValoryMetadata, ApiRequest } from "valory-runtime";
export declare class FastifyAdaptor implements ApiServer {
readonly locallyRunnable: boolean;
readonly allowDocSite: boolean;
private instance;
constructor();
register(path: string, method: HttpMethod, handler: (request: ApiRequest) => Promise<ApiResponse>): void;
getExport(metadata: ValoryMetadata, options: any): {
valory: ValoryMetadata;
};
shutdown(): void;
}