Cotal TypeScript packages
    Preparing search index...

    Interface BrokerPolicy

    What was recorded about how this broker is served.

    interface BrokerPolicy {
        accountResolver?: "full";
        authTimeout?: number;
        maxPayload?: number;
        transport: BrokerTransport;
        version: 1;
    }
    Index
    accountResolver?: "full"

    "full" when the broker resolves space accounts from a directory (cotal up --account-resolver full), so a host can add and retire accounts on the running broker without a reload. Absent: the MEMORY resolver, which only knows the accounts its configuration lists. A renderer outside up passes brokerAccountResolver for it, because nats-server switches resolvers only at start and refuses a reload that changes one.

    authTimeout?: number

    The broker's authorization { timeout } in whole seconds (cotal up --auth-timeout), which the auth service also takes as its callout deadline. Absent: nats-server's default.

    maxPayload?: number

    The broker's max_payload in bytes (cotal up --max-payload). Absent: nats-server's default. A renderer outside up - a hosted tenant provisioner, say - reads it from here rather than from the rendered config, so every render of this broker carries the same limit.

    transport: BrokerTransport
    version: 1

    Schema version, so a future reader can refuse a shape it does not understand rather than guess at one.