@dolittle/sdk.projections
Version:
Dolittle is a decentralized, distributed, event-driven microservice platform built to harness the power of events.
20 lines • 1.12 kB
JavaScript
;
// Copyright (c) Dolittle. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
Object.defineProperty(exports, "__esModule", { value: true });
exports.StaticKeySelector = void 0;
const Key_1 = require("./Key");
/**
* Represents a static key selector.
*/
class StaticKeySelector {
/**
* Initializes a new instance of the {@link StaticKeySelector} class.
* @param {Key | string} key - The static key to use as projection key.
*/
constructor(key) {
this.staticKey = Key_1.Key.from(key);
}
}
exports.StaticKeySelector = StaticKeySelector;
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiU3RhdGljS2V5U2VsZWN0b3IuanMiLCJzb3VyY2VSb290IjoiLi4vIiwic291cmNlcyI6WyJTdGF0aWNLZXlTZWxlY3Rvci50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiO0FBQUEsK0NBQStDO0FBQy9DLHFHQUFxRzs7O0FBRXJHLCtCQUE0QjtBQUU1Qjs7R0FFRztBQUNILE1BQWEsaUJBQWlCO0lBRzFCOzs7T0FHRztJQUNILFlBQVksR0FBaUI7UUFDekIsSUFBSSxDQUFDLFNBQVMsR0FBRyxTQUFHLENBQUMsSUFBSSxDQUFDLEdBQUcsQ0FBQyxDQUFDO0lBQ25DLENBQUM7Q0FDSjtBQVZELDhDQVVDIn0=