Class ApiEndpoint
Configuration constants for the gateway's gRPC endpoint that other services call. The endpoint is configured via HostEnvVar and PortEnvVar, with defaults suitable for local development.
public static class ApiEndpoint
- Inheritance
-
ApiEndpoint
- Inherited Members
Fields
ApiKeyEnvVar
Environment variable carrying this service's own x-api-key for
calling the gateway. Unset or empty sends no key: correct when the
gateway's auth is disabled (no keys configured on it).
public const string ApiKeyEnvVar = "VIRTUFIN_API_KEY"
Field Value
DefaultHost
Default API host (loopback for local dev).
public const string DefaultHost = "localhost"
Field Value
DefaultPort
Default API gRPC port.
public const int DefaultPort = 5002
Field Value
HostEnvVar
Environment variable that overrides the API host.
public const string HostEnvVar = "VIRTUFIN_API_HOST"
Field Value
PortEnvVar
Environment variable that overrides the API gRPC port.
public const string PortEnvVar = "VIRTUFIN_API_GRPC_PORT"
Field Value
Methods
BuildAddress(string, int)
The plaintext gRPC channel address http://{host}:{port}.
public static string BuildAddress(string host, int port)