Type Alias WorkerEvent

WorkerEvent: Message<"virtufin.WorkerEvent"> & {
    attributes: { [key: string]: string };
    contentType: string;
    data: Uint8Array;
    id: string;
    source: string;
    subject: string;
    type: string;
}

One output of a worker, flattened: its core attributes, its extension attributes as strings, and its data.

Type declaration

  • attributes: { [key: string]: string }

    from field: map<string, string> attributes = 7;

  • contentType: string

    from field: string content_type = 5;

  • data: Uint8Array

    from field: bytes data = 6;

  • id: string

    from field: string id = 1;

  • source: string

    from field: string source = 3;

  • subject: string

    from field: string subject = 4;

  • type: string

    from field: string type = 2;

from message virtufin.WorkerEvent