blob: c7812b705462ff10d563322876d271f2219e499a (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
#pragma once
#include <util/generic/ptr.h>
#include <util/generic/string.h>
#include <library/cpp/actors/core/actor.h>
#include <library/cpp/actors/core/event_local.h>
#include <library/cpp/grpc/client/grpc_client_low.h>
namespace NCloud {
template <typename TEv, ui32 TEventType, typename TProtoMessage>
struct TEvGrpcProtoRequest : NActors::TEventLocal<TEv, TEventType> {
TProtoMessage Request;
TString Token;
TString RequestId;
};
template <typename TEv, ui32 TEventType, typename TProtoMessage>
struct TEvGrpcProtoResponse : NActors::TEventLocal<TEv, TEventType> {
THolder<NActors::IEventHandle> Request;
TProtoMessage Response;
NGrpc::TGrpcStatus Status;
};
}
|