Setu-TS
    Preparing search index...

    Interface StaticServiceDefinition

    One entry of a 'static' service list.

    0.2.0

    interface StaticServiceDefinition {
        host: string;
        id?: string;
        metadata?: Readonly<Record<string, string>>;
        port: number;
        secure?: boolean;
        tags?: readonly string[];
        weight?: number;
    }
    Index
    host: string

    Hostname or IP literal.

    id?: string

    Instance id. Synthesized as <host>:<port> when omitted.

    metadata?: Readonly<Record<string, string>>

    Key/value metadata.

    port: number

    TCP port.

    secure?: boolean

    Whether the instance speaks TLS.

    tags?: readonly string[]

    Labels.

    weight?: number

    Relative selection weight for 'weighted-random'.