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§
Sourcetype DiscoverStream: Stream<Item = Result<ConfigDiscoverResponse, Status>> + Send + 'static
type DiscoverStream: Stream<Item = Result<ConfigDiscoverResponse, Status>> + Send + 'static
Server streaming response type for the Discover method.
Required Methods§
Sourcefn 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 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,
拉取配置
Sourcefn 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 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,
创建配置
Sourcefn 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 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,
更新配置
Sourcefn 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 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,
发布配置
Sourcefn 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 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,
发布配置
Sourcefn 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 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,
订阅配置变更
Sourcefn 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 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,
拉取指定配置分组下的配置文件列表