Skip to content

Commit

Permalink
Update codegen
Browse files Browse the repository at this point in the history
  • Loading branch information
sfodagain committed Apr 12, 2024
1 parent e2dad9b commit 41e8d4f
Show file tree
Hide file tree
Showing 4 changed files with 1,594 additions and 527 deletions.
18 changes: 18 additions & 0 deletions eventstream_rpc/tests/include/awstest/EchoTestRpcClient.h
Original file line number Diff line number Diff line change
Expand Up @@ -40,18 +40,36 @@ namespace Awstest
void Close() noexcept;
void WithLaunchMode(std::launch mode) noexcept;

/**
* Fetches all products, indexed by SKU
*/
std::shared_ptr<GetAllProductsOperation> NewGetAllProducts() noexcept;

/**
* Throws a ServiceError instead of returning a response.
*/
std::shared_ptr<CauseServiceErrorOperation> NewCauseServiceError() noexcept;

/**
* Responds to initial request normally then throws a ServiceError on stream response
*/
std::shared_ptr<CauseStreamServiceToErrorOperation> NewCauseStreamServiceToError(
std::shared_ptr<CauseStreamServiceToErrorStreamHandler> streamHandler) noexcept;

/**
* Initial request and response are empty, but echos streaming messages sent by client
*/
std::shared_ptr<EchoStreamMessagesOperation> NewEchoStreamMessages(
std::shared_ptr<EchoStreamMessagesStreamHandler> streamHandler) noexcept;

/**
* Returns the same data sent in the request to the response
*/
std::shared_ptr<EchoMessageOperation> NewEchoMessage() noexcept;

/**
* Fetches all customers
*/
std::shared_ptr<GetAllCustomersOperation> NewGetAllCustomers() noexcept;

~EchoTestRpcClient() noexcept;
Expand Down
Loading

0 comments on commit 41e8d4f

Please sign in to comment.