Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Service

Holds properties of service and node that its containing

Hierarchy

  • Service

Index

Constructors

constructor

  • Returns Service

  • Parameters

    Returns Service

Methods

getAddress

  • getAddress(): string
  • Set service address

    Returns string

getId

  • getId(): string
  • Set ID of service

    Returns string

getMeta

  • getMeta(): {}
  • Specifies arbitrary KV metadata linked to the service instance.

    Returns {}

    • [key: string]: string

getName

  • getName(): string
  • Set service name

    Returns string

getNode

  • getNode(): string
  • Set node name

    Returns string

getNodeAddress

  • getNodeAddress(): string
  • Set node address

    Returns string

getPort

  • getPort(): number
  • Set service port

    Returns number

getTags

  • getTags(): string[]
  • Set list of service tags

    Returns string[]

setAddress

  • setAddress(address: string): Service
  • Set service address

    Parameters

    • address: string

    Returns Service

setId

  • Set ID of service

    Parameters

    • id: string

    Returns Service

setMeta

  • Specifies arbitrary KV metadata linked to the service instance.

    Parameters

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

    Returns Service

setName

  • Set service name

    Parameters

    • name: string

    Returns Service

setNode

  • Set node name

    Parameters

    • node: string

    Returns Service

setNodeAddress

  • setNodeAddress(nodeAddress: string): Service
  • Set node address

    Parameters

    • nodeAddress: string

    Returns Service

setPort

  • Set service port

    Parameters

    • port: number

    Returns Service

setTags

  • Set list of service tags

    Parameters

    • tags: string[]

    Returns Service

toJson

  • toJson(): {}
  • Returns {}

    • [key: string]: any

Generated using TypeDoc