@adviser/cement - v0.0.0
    Preparing search index...

    Interface EventoSendProvider<INREQ, REQ, RES>

    Interface for sending data during event handling. Provides lifecycle hooks (start, send, done) for managing event communication.

    interface EventoSendProvider<INREQ, REQ, RES> {
        start?(
            trigger: HandleTriggerCtx<INREQ, REQ, RES>,
        ): Promise<Result<void, Error>>;
        send<IS, OS>(
            trigger: HandleTriggerCtx<INREQ, REQ, RES>,
            data: IS,
        ): Promise<Result<OS, Error>>;
        done?(
            trigger: HandleTriggerCtx<INREQ, REQ, RES>,
        ): Promise<Result<void, Error>>;
    }

    Type Parameters

    • INREQ

      The input request type

    • REQ

      The validated request type

    • RES

      The response type

    Index

    Methods

    Methods