pub trait Gonzalo:
Send
+ Sync
+ 'static {
Show 14 methods
// Required methods
fn get<'life0, 'async_trait>(
&'life0 self,
request: Request<GetRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<GetResponse>, Status>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn put<'life0, 'async_trait>(
&'life0 self,
request: Request<PutRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<PutResponse>, Status>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn delete<'life0, 'async_trait>(
&'life0 self,
request: Request<DeleteRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<DeleteResponse>, Status>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn list<'life0, 'async_trait>(
&'life0 self,
request: Request<ListRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<ListResponse>, Status>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn ticket_sync<'life0, 'async_trait>(
&'life0 self,
request: Request<TicketSyncRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<TicketSyncResponse>, Status>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn graph_definitions<'life0, 'async_trait>(
&'life0 self,
request: Request<GraphQueryRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<GraphLocatedResponse>, Status>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn graph_references_to<'life0, 'async_trait>(
&'life0 self,
request: Request<GraphQueryRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<GraphLocatedResponse>, Status>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn graph_callers_of<'life0, 'async_trait>(
&'life0 self,
request: Request<GraphQueryRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<GraphNamesResponse>, Status>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn graph_callees<'life0, 'async_trait>(
&'life0 self,
request: Request<GraphQueryRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<GraphNamesResponse>, Status>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn graph_impact<'life0, 'async_trait>(
&'life0 self,
request: Request<GraphQueryRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<GraphNamesResponse>, Status>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn put_blob<'life0, 'async_trait>(
&'life0 self,
request: Request<PutBlobRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<PutBlobResponse>, Status>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn get_blob<'life0, 'async_trait>(
&'life0 self,
request: Request<GetBlobRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<GetBlobResponse>, Status>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn list_blobs<'life0, 'async_trait>(
&'life0 self,
request: Request<ListBlobsRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<ListBlobsResponse>, Status>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn delete_blob<'life0, 'async_trait>(
&'life0 self,
request: Request<DeleteBlobRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<DeleteBlobResponse>, 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 GonzaloServer.
Required Methods§
fn get<'life0, 'async_trait>(
&'life0 self,
request: Request<GetRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<GetResponse>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn put<'life0, 'async_trait>(
&'life0 self,
request: Request<PutRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<PutResponse>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn delete<'life0, 'async_trait>(
&'life0 self,
request: Request<DeleteRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<DeleteResponse>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn list<'life0, 'async_trait>(
&'life0 self,
request: Request<ListRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<ListResponse>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn ticket_sync<'life0, 'async_trait>(
&'life0 self,
request: Request<TicketSyncRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<TicketSyncResponse>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Sourcefn graph_definitions<'life0, 'async_trait>(
&'life0 self,
request: Request<GraphQueryRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<GraphLocatedResponse>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn graph_definitions<'life0, 'async_trait>(
&'life0 self,
request: Request<GraphQueryRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<GraphLocatedResponse>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Code graph queries (EPIC C). Each selects a view by (repo, view_id).
fn graph_references_to<'life0, 'async_trait>(
&'life0 self,
request: Request<GraphQueryRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<GraphLocatedResponse>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn graph_callers_of<'life0, 'async_trait>(
&'life0 self,
request: Request<GraphQueryRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<GraphNamesResponse>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn graph_callees<'life0, 'async_trait>(
&'life0 self,
request: Request<GraphQueryRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<GraphNamesResponse>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn graph_impact<'life0, 'async_trait>(
&'life0 self,
request: Request<GraphQueryRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<GraphNamesResponse>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Sourcefn put_blob<'life0, 'async_trait>(
&'life0 self,
request: Request<PutBlobRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<PutBlobResponse>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn put_blob<'life0, 'async_trait>(
&'life0 self,
request: Request<PutBlobRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<PutBlobResponse>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Content-addressed blobs (gonzalo#184). Bodies ride as raw bytes, not JSON.