@dolittle/sdk.projections
Version:
Dolittle is a decentralized, distributed, event-driven microservice platform built to harness the power of events.
20 lines (16 loc) • 714 B
text/typescript
// Copyright (c) Dolittle. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
import { OccurredFormat } from './OccurredFormat';
/**
* Represents an event occurred key selector.
*/
export class EventOccurredKeySelector {
readonly occurredFormat: OccurredFormat;
/**
* Initializes a new instance of the {@link EventOccurredKeySelector} class.
* @param {OccurredFormat | string} occurredFormat - The occurred format to use as format for getting key from event occurred metadata.
*/
constructor(occurredFormat: OccurredFormat | string) {
this.occurredFormat = OccurredFormat.from(occurredFormat);
}
}