24 lines
554 B
TypeScript
Raw Normal View History

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