Hermes MySQL
    Preparing search index...

    Type Alias EventStoreConsumerParams<E>

    EventStoreConsumerParams: EventStoreConsumerBaseParams & {
        consumerName: string;
        publish: (event: HermesEventEnvelope<E>) => Promise<void> | void;
    }

    Type Parameters

    • E extends Event

    Type Declaration

    • consumerName: string

      The name of the consumer: it has its own checkpoint in every stream (at most 250 characters, not starting with projection: or reaction:).

    • publish: (event: HermesEventEnvelope<E>) => Promise<void> | void

      Publishes an event, e.g. to a message broker. Throw to publish it again later; its stream waits until then.