github.com/nya3jp/tast@v0.0.0-20230601000426-85c8e4d83a9b/src/go.chromium.org/tast/core/internal/protocol/logging.proto (about) 1 // Copyright 2019 The ChromiumOS Authors 2 // Use of this source code is governed by a BSD-style license that can be 3 // found in the LICENSE file. 4 5 syntax = "proto3"; 6 7 package tast.core; 8 option go_package = "go.chromium.org/tast/core/internal/protocol"; 9 10 service Logging { 11 // ReadLogs subscribes to logs emitted by gRPC services. 12 // At the beginning of the call, one ReadLogsResponse with empty entry is 13 // sent to indicate success of subscription. Afterwards ReadLogsResponse is 14 // sent back as a stream as logs are emitted. The response stream is closed 15 // when the client closes the request stream or any error occurs. 16 // At most one client can have an active call of this method at a time. 17 rpc ReadLogs(stream ReadLogsRequest) returns (stream ReadLogsResponse) {} 18 } 19 20 message ReadLogsRequest {} 21 22 message ReadLogsResponse { 23 // entry is an emitted log entry. It is missing for an initial 24 // ReadLogsResponse to indicate success of subscription. 25 LogEntry entry = 1; 26 } 27 28 message LogEntry { 29 // Msg is a logged message. 30 string msg = 1; 31 // Seq is an ID of the log entry. It is a sequentially increasing number 32 // starting from 1. 33 uint64 seq = 2; 34 }