LookupStatus

public enum LookupStatus

Status of service lookup in DNS

  • lookup was successful, results are valid

    Declaration

    Swift

    case success(name: FullyQualifiedDomainName, records: [GatewayModuleName : GatewayModulePathType])
  • lookup failed

    Declaration

    Swift

    case failed(error: Error)
  • After successful lookup, it returns endpointURL for a given interface name

    • Parameters

      • interface: name of the gateway interface for the URL-endpoint
      • scheme: URL Scheme, default: .https
      • port: service port number, default: 443

    Declaration

    Swift

    public func endpointURLForInterface(interface: ServiceInterfaceName, scheme: URLScheme = .https, port: Int? = 443)
            -> URL?

    Return Value

    URL of given interface name nil, if URL could not be calculated or DNS lookup has not finished (successfully)

  • Return the home community id after DNS lookup

    Declaration

    Swift

    public var homeCommunityId: String? { get }

    Return Value

    home community id found in DNS lookup for given FQDN if NDS lookup was successful

  • Declaration

    Swift

    public static func == (lhs: LookupStatus, rhs: LookupStatus) -> Bool