@interopio/gateway
Version:
[](https://www.npmjs.com/package/@interopio/gateway)
14 lines (10 loc) • 453 B
TypeScript
import {IOGateway} from '../../../gateway';
export type RestPublisherConfig = {
endpoint: string | URL
timeout?: number
authentication?: { user: string, password: string } | {path?: string} | false
headers?: HeadersInit
fetch?: typeof fetch
}
export const name = 'rest';
export function create(config: RestPublisherConfig, logger: IOGateway.Logging.Logger): (msg: 'start' | 'stop' | IOGateway.Metrics.Update) => Promise<unknown>;