source: frontend/node_modules/bonjour-service/dist/lib/service.d.ts

Last change on this file was 9af201e, checked in by MBK <marija.karapandzova@…>, 2 weeks ago

Fix frontend appearance

  • Property mode set to 100644
File size: 1.3 KB
Line 
1import KeyValue from './KeyValue';
2import { EventEmitter } from 'events';
3export interface ServiceConfig {
4 name: string;
5 type: string;
6 port: number;
7 protocol?: 'tcp' | 'udp';
8 host?: string;
9 fqdn?: string;
10 subtypes?: Array<string>;
11 txt?: KeyValue;
12 probe?: boolean;
13 disableIPv6?: boolean;
14}
15export interface ServiceRecord {
16 name: string;
17 type: 'PTR' | 'SRV' | 'TXT' | 'A' | 'AAAA';
18 ttl: number;
19 data: KeyValue | string | any;
20}
21export interface ServiceReferer {
22 address: string;
23 family: 'IPv4' | 'IPv6';
24 port: number;
25 size: number;
26}
27export declare class Service extends EventEmitter {
28 name: string;
29 type: string;
30 protocol: 'tcp' | 'udp';
31 port: number;
32 host: string;
33 fqdn: string;
34 txt?: any;
35 subtypes?: Array<string>;
36 addresses?: Array<string>;
37 referer?: ServiceReferer;
38 disableIPv6: boolean;
39 probe: boolean;
40 published: boolean;
41 activated: boolean;
42 destroyed: boolean;
43 start?: CallableFunction;
44 stop?: CallableFunction;
45 private txtService;
46 constructor(config: ServiceConfig);
47 records(): Array<ServiceRecord>;
48 private RecordPTR;
49 private RecordSubtypePTR;
50 private RecordSRV;
51 private RecordTXT;
52 private RecordA;
53 private RecordAAAA;
54}
55export default Service;
Note: See TracBrowser for help on using the repository browser.