pub trait PlatformService: Send + Sync + 'static {
    type OpenStreamStream: Stream<Item = Result<PlatformOutboundInstruction, Status>> + Send + 'static;

    // Required methods
    fn get_platform_server<'life0, 'async_trait>(
        &'life0 self,
        request: Request<ClientIdentification>
    ) -> Pin<Box<dyn Future<Output = Result<Response<PlatformInfo>, Status>> + Send + 'async_trait>>
       where 'life0: 'async_trait,
             Self: 'async_trait;
    fn open_stream<'life0, 'async_trait>(
        &'life0 self,
        request: Request<Streaming<PlatformInboundInstruction>>
    ) -> Pin<Box<dyn Future<Output = Result<Response<Self::OpenStreamStream>, Status>> + Send + 'async_trait>>
       where 'life0: 'async_trait,
             Self: 'async_trait;
}
Expand description

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

Required Associated Types§

source

type OpenStreamStream: Stream<Item = Result<PlatformOutboundInstruction, Status>> + Send + 'static

Server streaming response type for the OpenStream method.

Required Methods§

source

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

Obtains connection information for the Server that a Client should use for its connections.

source

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

Opens an instruction stream to the Platform, allowing AxonServer to provide management instructions to the application

Implementors§