Trait PolarisConfigGrpc

Source
pub trait PolarisConfigGrpc:
    Send
    + Sync
    + 'static {
    type DiscoverStream: Stream<Item = Result<ConfigDiscoverResponse, Status>> + Send + 'static;

    // Required methods
    fn get_config_file<'life0, 'async_trait>(
        &'life0 self,
        request: Request<ClientConfigFileInfo>,
    ) -> Pin<Box<dyn Future<Output = Result<Response<ConfigClientResponse>, Status>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn create_config_file<'life0, 'async_trait>(
        &'life0 self,
        request: Request<ConfigFile>,
    ) -> Pin<Box<dyn Future<Output = Result<Response<ConfigClientResponse>, Status>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn update_config_file<'life0, 'async_trait>(
        &'life0 self,
        request: Request<ConfigFile>,
    ) -> Pin<Box<dyn Future<Output = Result<Response<ConfigClientResponse>, Status>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn publish_config_file<'life0, 'async_trait>(
        &'life0 self,
        request: Request<ConfigFileRelease>,
    ) -> Pin<Box<dyn Future<Output = Result<Response<ConfigClientResponse>, Status>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn upsert_and_publish_config_file<'life0, 'async_trait>(
        &'life0 self,
        request: Request<ConfigFilePublishInfo>,
    ) -> Pin<Box<dyn Future<Output = Result<Response<ConfigClientResponse>, Status>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn watch_config_files<'life0, 'async_trait>(
        &'life0 self,
        request: Request<ClientWatchConfigFileRequest>,
    ) -> Pin<Box<dyn Future<Output = Result<Response<ConfigClientResponse>, Status>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn get_config_file_metadata_list<'life0, 'async_trait>(
        &'life0 self,
        request: Request<ConfigFileGroupRequest>,
    ) -> Pin<Box<dyn Future<Output = Result<Response<ConfigClientListResponse>, Status>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn discover<'life0, 'async_trait>(
        &'life0 self,
        request: Request<Streaming<ConfigDiscoverRequest>>,
    ) -> Pin<Box<dyn Future<Output = Result<Response<Self::DiscoverStream>, Status>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
}
Expand description

Generated trait containing gRPC methods that should be implemented for use with PolarisConfigGrpcServer.

Required Associated Types§

Source

type DiscoverStream: Stream<Item = Result<ConfigDiscoverResponse, Status>> + Send + 'static

Server streaming response type for the Discover method.

Required Methods§

Source

fn get_config_file<'life0, 'async_trait>( &'life0 self, request: Request<ClientConfigFileInfo>, ) -> Pin<Box<dyn Future<Output = Result<Response<ConfigClientResponse>, Status>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

拉取配置

Source

fn create_config_file<'life0, 'async_trait>( &'life0 self, request: Request<ConfigFile>, ) -> Pin<Box<dyn Future<Output = Result<Response<ConfigClientResponse>, Status>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

创建配置

Source

fn update_config_file<'life0, 'async_trait>( &'life0 self, request: Request<ConfigFile>, ) -> Pin<Box<dyn Future<Output = Result<Response<ConfigClientResponse>, Status>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

更新配置

Source

fn publish_config_file<'life0, 'async_trait>( &'life0 self, request: Request<ConfigFileRelease>, ) -> Pin<Box<dyn Future<Output = Result<Response<ConfigClientResponse>, Status>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

发布配置

Source

fn upsert_and_publish_config_file<'life0, 'async_trait>( &'life0 self, request: Request<ConfigFilePublishInfo>, ) -> Pin<Box<dyn Future<Output = Result<Response<ConfigClientResponse>, Status>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

发布配置

Source

fn watch_config_files<'life0, 'async_trait>( &'life0 self, request: Request<ClientWatchConfigFileRequest>, ) -> Pin<Box<dyn Future<Output = Result<Response<ConfigClientResponse>, Status>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

订阅配置变更

Source

fn get_config_file_metadata_list<'life0, 'async_trait>( &'life0 self, request: Request<ConfigFileGroupRequest>, ) -> Pin<Box<dyn Future<Output = Result<Response<ConfigClientListResponse>, Status>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

拉取指定配置分组下的配置文件列表

Source

fn discover<'life0, 'async_trait>( &'life0 self, request: Request<Streaming<ConfigDiscoverRequest>>, ) -> Pin<Box<dyn Future<Output = Result<Response<Self::DiscoverStream>, Status>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

统一发现接口

Implementors§