Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Function-based discovery API alternative #864

Closed
wants to merge 25 commits into from
Closed
Changes from 1 commit
Commits
Show all changes
25 commits
Select commit Hold shift + click to select a range
b8e5d92
chore!: bump tsc target to es2018
JKRhb May 26, 2022
1030684
feat!: add proposal for new discovery API
JKRhb May 26, 2022
96be7f4
fixup! feat!: add proposal for new discovery API
JKRhb May 26, 2022
7f40323
fixup! feat!: add proposal for new discovery API
JKRhb May 26, 2022
d68f9df
fixup! feat!: add proposal for new discovery API
JKRhb May 26, 2022
880558e
fixup! feat!: add proposal for new discovery API
JKRhb May 26, 2022
d1ec05f
fixup! feat!: add proposal for new discovery API
JKRhb May 26, 2022
37a1620
fixup! feat!: add proposal for new discovery API
JKRhb Aug 9, 2022
6ee7d4b
fixup! feat!: add proposal for new discovery API
JKRhb Aug 9, 2022
cf5a391
fixup! feat!: add proposal for new discovery API
JKRhb Aug 9, 2022
734f86b
fixup! feat!: add proposal for new discovery API
JKRhb Aug 9, 2022
04b7b2f
fixup! feat!: add proposal for new discovery API
JKRhb Aug 9, 2022
5440bea
fixup! feat!: add proposal for new discovery API
JKRhb Nov 7, 2022
db320c1
fixup! feat!: add proposal for new discovery API
JKRhb Nov 7, 2022
74b0e37
fixup! feat!: add proposal for new discovery API
JKRhb Nov 7, 2022
2207a91
fixup! feat!: add proposal for new discovery API
JKRhb Nov 7, 2022
ad43508
fixup! feat!: add proposal for new discovery API
JKRhb Nov 7, 2022
b869b5c
fixup! feat!: add proposal for new discovery API
JKRhb Sep 19, 2023
961606e
fixup! feat!: add proposal for new discovery API
JKRhb Sep 19, 2023
950faa3
fixup! feat!: add proposal for new discovery API
JKRhb Sep 19, 2023
5636983
fixup! feat!: add proposal for new discovery API
JKRhb Oct 23, 2023
88252f0
fixup! feat!: add proposal for new discovery API
JKRhb Oct 23, 2023
44af619
fixup! feat!: add proposal for new discovery API
JKRhb Nov 21, 2023
495b857
fixup! feat!: add proposal for new discovery API
JKRhb Nov 21, 2023
ccd7751
fixup! feat!: add proposal for new discovery API
JKRhb Nov 21, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fixup! feat!: add proposal for new discovery API
JKRhb committed Nov 21, 2023
commit 74b0e3751967542d245a67a7652a11e3a5cab857
4 changes: 2 additions & 2 deletions packages/binding-coap/src/coaps-client.ts
Original file line number Diff line number Diff line change
@@ -236,7 +236,7 @@ export default class CoapsClient implements ProtocolClient {
return req;
}

discoverDirectly(uri: string): Promise<Content> {
return Promise.reject(new Error("Method not implemented."));
async discoverDirectly(uri: string): Promise<Content> {
throw new Error("Method not implemented.");
}
}
4 changes: 2 additions & 2 deletions packages/binding-file/src/file-client.ts
Original file line number Diff line number Diff line change
@@ -91,7 +91,7 @@ export default class FileClient implements ProtocolClient {

public setSecurity = (metadata: Array<SecurityScheme>): boolean => false;

discoverDirectly(uri: string): Promise<Content> {
return Promise.reject(new Error("Method not implemented."));
async discoverDirectly(uri: string): Promise<Content> {
throw new Error("Method not implemented.");
}
}
4 changes: 2 additions & 2 deletions packages/binding-mbus/src/mbus-client.ts
Original file line number Diff line number Diff line change
@@ -145,7 +145,7 @@ export default class MBusClient implements ProtocolClient {
return result;
}

discoverDirectly(uri: string): Promise<Content> {
return Promise.reject(new Error("Method not implemented."));
async discoverDirectly(uri: string): Promise<Content> {
throw new Error("Method not implemented.");
}
}
4 changes: 2 additions & 2 deletions packages/binding-modbus/src/modbus-client.ts
Original file line number Diff line number Diff line change
@@ -310,7 +310,7 @@ export default class ModbusClient implements ProtocolClient {
return result as ModbusFormWithDefaults;
}

discoverDirectly(uri: string): Promise<Content> {
return Promise.reject(new Error("Method not implemented."));
async discoverDirectly(uri: string): Promise<Content> {
throw new Error("Method not implemented.");
}
}
4 changes: 2 additions & 2 deletions packages/binding-mqtt/src/mqtt-client.ts
Original file line number Diff line number Diff line change
@@ -200,7 +200,7 @@ export default class MqttClient implements ProtocolClient {
}
}

discoverDirectly(uri: string): Promise<Content> {
return Promise.reject(new Error("Method not implemented."));
async discoverDirectly(uri: string): Promise<Content> {
throw new Error("Method not implemented.");
}
}
4 changes: 2 additions & 2 deletions packages/binding-netconf/src/netconf-client.ts
Original file line number Diff line number Diff line change
@@ -176,7 +176,7 @@ export default class NetconfClient implements ProtocolClient {
return true;
}

discoverDirectly(uri: string): Promise<Content> {
return Promise.reject(new Error("Method not implemented."));
async discoverDirectly(uri: string): Promise<Content> {
throw new Error("Method not implemented.");
}
}
4 changes: 2 additions & 2 deletions packages/binding-opcua/src/opcua-protocol-client.ts
Original file line number Diff line number Diff line change
@@ -621,7 +621,7 @@ export class OPCUAProtocolClient implements ProtocolClient {
return new Content("application/json", Readable.from(JSON.stringify(body)));
}

discoverDirectly(uri: string): Promise<Content> {
return Promise.reject(new Error("Method not implemented."));
async discoverDirectly(uri: string): Promise<Content> {
throw new Error("Method not implemented.");
}
}
4 changes: 2 additions & 2 deletions packages/binding-websockets/src/ws-client.ts
Original file line number Diff line number Diff line change
@@ -29,8 +29,8 @@ export default class WebSocketClient implements ProtocolClient {
// TODO: implement and remove eslint-ignore-useless-constructor
}

discoverDirectly(uri: string): Promise<Content> {
return Promise.reject(new Error("Method not implemented."));
async discoverDirectly(uri: string): Promise<Content> {
throw new Error("Method not implemented.");
}

public toString(): string {