UNPKG

database-proxy

Version:

Through a set of access control rules configuration database access to realize the client directly access the database via HTTP.

22 lines 659 B
import { Params } from './types'; import { PolicyInterface } from './policy/interface'; export declare enum ProcessTypes { Validator = "validator" } export interface HandlerContext { ruler: PolicyInterface; params: Params; injections: any; } export interface Handler { (config: any, context: HandlerContext): any; } export declare class Processor { protected handler: Handler; readonly name: string; readonly type: ProcessTypes; readonly config: any; constructor(name: string, handler: Handler, config: any, type?: ProcessTypes); run(context: HandlerContext): Promise<any>; } //# sourceMappingURL=processor.d.ts.map