MCPcopy Index your code
hub / github.com/loopbackio/loopback-next / generate

Method generate

packages/context/src/binding-key.ts:131–135  ·  view source on GitHub ↗

* Generate a universally unique binding key. * * Please note the format of they generated key is not specified, you must * not rely on any specific formatting (e.g. UUID style). * * @param namespace - Namespace for the binding

(namespace = '')

Source from the content-addressed store, hash-verified

129 * @param namespace - Namespace for the binding
130 */
131 static generate<T>(namespace = ''): BindingKey<T> {
132 const prefix = namespace ? `${namespace}.` : '';
133 const name = generateUniqueId();
134 return BindingKey.create(`${prefix}${name}`);
135 }
136}

Callers 5

registerInterceptorFunction · 0.80
registerMiddlewareFunction · 0.80
middlewareMethod · 0.80

Calls 1

createMethod · 0.65

Tested by

no test coverage detected