@iota-pico/core
Version:
IOTA Pico Framework Core
33 lines (32 loc) • 729 B
TypeScript
import { NetworkProtocol } from "./networkProtocol";
/**
* Represents the configuration for a network endpoint.
* @interface
*/
export interface INetworkEndPoint {
/**
* The protocol to access the endpoint with.
* @returns The protocol.
*/
getProtocol(): NetworkProtocol;
/**
* The host name or ip of the endpoint.
* @returns The host.
*/
getHost(): string;
/**
* The port of the endpoint.
* @returns The port.
*/
getPort(): number;
/**
* The path to the endpoint.
* @returns The path.
*/
getRootPath(): string;
/**
* The complete uri.
* @returns The uri.
*/
getUri(): string;
}