MCPcopy
hub / github.com/buildbot/buildbot / get

Method get

www/data-module/src/data/DataClient.ts:29–39  ·  view source on GitHub ↗
(endpoint: string, accessor: IDataAccessor,
                                  descriptor: IDataDescriptor<DataType>,
                                  query: Query, subscribe: boolean)

Source from the content-addressed store, hash-verified

27 }
28
29 get<DataType extends BaseClass>(endpoint: string, accessor: IDataAccessor,
30 descriptor: IDataDescriptor<DataType>,
31 query: Query, subscribe: boolean) {
32 return this.getAny(endpoint, accessor, descriptor, query, subscribe,
33 () => {
34 const c = new DataCollection<DataType>(this.nextDataCollectionInternalId);
35 this.nextDataCollectionInternalId += 1;
36 c.open(endpoint, query, accessor, descriptor, this.webSocketClient);
37 return c;
38 });
39 }
40
41 getProperties(endpoint: string, accessor: IDataAccessor,
42 query: Query, subscribe: boolean) {

Callers

nothing calls this directly

Calls 2

getAnyMethod · 0.95
openMethod · 0.95

Tested by

no test coverage detected