Interface IDecoder<T>

interface IDecoder<T> {
    contentTopic: string;
    fromProtoObj: ((pubsubTopic, proto) => Promise<undefined | T>);
    fromWireToProtoObj: ((bytes) => Promise<undefined | IProtoMessage>);
    pubsubTopic: string;
}

Type Parameters

Implemented by

Properties

contentTopic: string
fromProtoObj: ((pubsubTopic, proto) => Promise<undefined | T>)

Type declaration

    • (pubsubTopic, proto): Promise<undefined | T>
    • Parameters

      Returns Promise<undefined | T>

fromWireToProtoObj: ((bytes) => Promise<undefined | IProtoMessage>)

Type declaration

pubsubTopic: string

Generated using TypeDoc