endhost-api-discovery-models 0.5.2

Protobuf definitions for the SCION endhost API
Documentation
// This file is @generated by prost-build.
/// Request to discovery available Endhost APIs.
#[derive(Clone, Copy, PartialEq, Eq, Hash, ::prost::Message)]
pub struct RpcGetEndhostApisRequest {}
/// Endhost APIs response message.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct RpcGetEndhostApisResponse {
    /// Set of Endhost APIs groups.
    /// Should be used in order, using the first reachable one.
    ///
    /// After establishing a connection to an API in a group, the client can failover to any other API in the same group if the connection fails.
    /// Failover between groups requires the client to re-establish connections to snaps and other services using the new API.
    #[prost(message, repeated, tag = "1")]
    pub groups: ::prost::alloc::vec::Vec<RpcEndhostApiGroup>,
}
/// Group of Endhost APIs the client can failover between.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct RpcEndhostApiGroup {
    /// URL of the Endhost API.
    #[prost(message, repeated, tag = "1")]
    pub apis: ::prost::alloc::vec::Vec<RpcEndhostApiInfo>,
}
/// Single Endhost API.
#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
pub struct RpcEndhostApiInfo {
    /// URL of the Endhost API.
    #[prost(string, tag = "1")]
    pub address: ::prost::alloc::string::String,
}