@versatiles/google-cloud
Version:
A server for VersaTiles in Google Cloud Run
22 lines (21 loc) • 677 B
TypeScript
import type { Server } from 'http';
import type { AbstractBucket } from './bucket/index.js';
/**
* Interface defining the options for starting the server.
*/
export interface ServerOptions {
baseUrl: string;
bucket: AbstractBucket | string;
bucketPrefix: string;
fastRecompression: boolean;
localDirectory?: string;
rewriteRules: [string, string][];
port: number;
verbose: boolean;
}
/**
* Starts an Express server with specified options.
* @param opt - Configuration options for the server.
* @returns A promise resolving to the Express server instance.
*/
export declare function startServer(opt: ServerOptions): Promise<Server | null>;