UNPKG

@neo-one/server-plugin-network

Version:

NEO•ONE Server network plugin.

16 lines (15 loc) 829 B
import { Binary, PortAllocator, ResourceAdapter, ResourceAdapterOptions, TaskList } from '@neo-one/server-plugin'; import { Network, NetworkResourceOptions, NetworkResourceType } from './NetworkResourceType'; export declare class MasterNetworkResourceAdapter { private readonly resourceType; private readonly binary; private readonly portAllocator; constructor({ resourceType, binary, portAllocator, }: { readonly resourceType: NetworkResourceType; readonly binary: Binary; readonly portAllocator: PortAllocator; }); initResourceAdapter(options: ResourceAdapterOptions): Promise<ResourceAdapter<Network, NetworkResourceOptions>>; createResourceAdapter(adapterOptions: ResourceAdapterOptions, options: NetworkResourceOptions): TaskList; private getResourceAdapterOptions; }