Message structure for PFM memo

interface ForwardInfo {
    forward: {
        channel: `channel-${number}`;
        next?: {
            forward: ForwardInfo;
        };
        port: string;
        receiver: string;
        retries: number;
        timeout:
            | `${number}s`
            | `${number}m`
            | `${number}h`
            | `${number}ms`
            | `${number}us`
            | `${number}ns`;
    };
}

Properties

Properties

forward: {
    channel: `channel-${number}`;
    next?: {
        forward: ForwardInfo;
    };
    port: string;
    receiver: string;
    retries: number;
    timeout:
        | `${number}s`
        | `${number}m`
        | `${number}h`
        | `${number}ms`
        | `${number}us`
        | `${number}ns`;
}

Type declaration

  • channel: `channel-${number}`
  • Optionalnext?: {
        forward: ForwardInfo;
    }
  • port: string
  • receiver: string
  • retries: number

    default is 3?

  • timeout:
        | `${number}s`
        | `${number}m`
        | `${number}h`
        | `${number}ms`
        | `${number}us`
        | `${number}ns`

    e.g. '10m'