UNPKG

@interopio/gateway

Version:

[![npm version](https://img.shields.io/npm/v/@interopio/gateway.svg)](https://www.npmjs.com/package/@interopio/gateway)

14 lines (10 loc) 453 B
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>;