app/@overflow/model/discovery/Service.ts

24 lines
554 B
TypeScript
Raw Permalink Normal View History

2018-09-03 16:12:10 +00:00
import { Port } from './Port';
2018-09-17 14:19:16 +00:00
import { MetaCryptoType, MetaDiscovererType } from '../meta';
2018-09-03 16:12:10 +00:00
2018-09-12 02:28:32 +00:00
export const defaultServiceType = 'ETC';
export const defaultServiceVendor = 'UNKNOWN';
export const defaultServiceVersion = 'UNKNOWN';
2018-09-03 16:12:10 +00:00
export interface Service {
metaCryptoType?: MetaCryptoType;
key?: string;
2018-09-11 08:04:22 +00:00
name?: string;
2018-09-03 16:12:10 +00:00
description?: string;
2018-09-12 02:28:32 +00:00
serviceType?: string;
serviceVendor?: string;
serviceVersion?: string;
2018-09-11 08:04:22 +00:00
meta?: Map<string, Map<string, string>>;
2018-09-17 14:19:16 +00:00
discoveredBy?: MetaDiscovererType[];
2018-09-03 16:12:10 +00:00
discoveredDate?: Date;
2018-09-11 08:04:22 +00:00
port?: Port;
2018-09-03 16:12:10 +00:00
}