From 58adc5b60ccb83d1178e87021ef8c026eabe50a5 Mon Sep 17 00:00:00 2001 From: Leonardo Di Donato Date: Wed, 27 May 2020 20:01:12 +0000 Subject: [PATCH] new(userspace/falco): output gRPC service to provide a server streaming method and a bidirectional method to obtain Falco alerts Co-authored-by: Lorenzo Fontana Signed-off-by: Leonardo Di Donato --- userspace/falco/output.proto | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/userspace/falco/output.proto b/userspace/falco/output.proto index d4058c7c..df5f8381 100644 --- a/userspace/falco/output.proto +++ b/userspace/falco/output.proto @@ -7,10 +7,12 @@ package falco.output; option go_package = "github.com/falcosecurity/client-go/pkg/api/output"; -// The `subscribe` service defines the RPC call -// to perform an output `request` which will lead to obtain an output `response`. +// This service defines the RPC calls +// to perform an output `request` which will lead to obtain a stream of output `response`s. service service { - rpc subscribe(request) returns (stream response); + rpc sub(stream request) returns (stream response); + + rpc get(request) returns (stream response); } // The `request` message is the logical representation of the request model.