ServiceEndpoint Class

Represents a service endpoint with hostname and optional port.

Constructor

ServiceEndpoint(hostname: str, port: int | None = None)

Parameters

Name Description
hostname
Required
port
Default value: None

Attributes

hostname

The hostname of the service endpoint.

hostname: str

port

The port of the service endpoint.

port: int | None = None