Documentation ¶
Index ¶
- Variables
- func MapFromPB(log *Log) events.Log
- func RegisterCloudLogsServiceServer(s grpc.ServiceRegistrar, srv CloudLogsServiceServer)
- func RegisterLogsServiceServer(s grpc.ServiceRegistrar, srv LogsServiceServer)
- type CloudLogsServiceClient
- type CloudLogsServiceServer
- type CloudLogsService_LogsClient
- type CloudLogsService_LogsServer
- type CloudLogsService_StreamClient
- type CloudLogsService_StreamServer
- type Log
- func (*Log) Descriptor() ([]byte, []int)deprecated
- func (x *Log) GetContent() string
- func (x *Log) GetError() bool
- func (x *Log) GetMetadata() map[string]string
- func (x *Log) GetSource() string
- func (x *Log) GetTime() *timestamppb.Timestamp
- func (x *Log) GetType() string
- func (x *Log) GetVersion() string
- func (*Log) ProtoMessage()
- func (x *Log) ProtoReflect() protoreflect.Message
- func (x *Log) Reset()
- func (x *Log) String() string
- type LogRequest
- type LogsServiceClient
- type LogsServiceServer
- type LogsService_LogsClient
- type LogsService_LogsServer
- type StreamResponse
- func (*StreamResponse) Descriptor() ([]byte, []int)deprecated
- func (x *StreamResponse) GetMessage() string
- func (x *StreamResponse) GetStatus() StreamResponseStatus
- func (*StreamResponse) ProtoMessage()
- func (x *StreamResponse) ProtoReflect() protoreflect.Message
- func (x *StreamResponse) Reset()
- func (x *StreamResponse) String() string
- type StreamResponseStatus
- func (StreamResponseStatus) Descriptor() protoreflect.EnumDescriptor
- func (x StreamResponseStatus) Enum() *StreamResponseStatus
- func (StreamResponseStatus) EnumDescriptor() ([]byte, []int)deprecated
- func (x StreamResponseStatus) Number() protoreflect.EnumNumber
- func (x StreamResponseStatus) String() string
- func (StreamResponseStatus) Type() protoreflect.EnumType
- type UnimplementedCloudLogsServiceServer
- type UnimplementedLogsServiceServer
- type UnsafeCloudLogsServiceServer
- type UnsafeLogsServiceServer
Constants ¶
This section is empty.
Variables ¶
var ( StreamResponseStatus_name = map[int32]string{ 0: "Completed", 1: "Failed", } StreamResponseStatus_value = map[string]int32{ "Completed": 0, "Failed": 1, } )
Enum value maps for StreamResponseStatus.
var CloudLogsService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "logs.CloudLogsService", HandlerType: (*CloudLogsServiceServer)(nil), Methods: []grpc.MethodDesc{}, Streams: []grpc.StreamDesc{ { StreamName: "Stream", Handler: _CloudLogsService_Stream_Handler, ClientStreams: true, }, { StreamName: "Logs", Handler: _CloudLogsService_Logs_Handler, ServerStreams: true, }, }, Metadata: "pkg/logs/pb/logs.proto", }
CloudLogsService_ServiceDesc is the grpc.ServiceDesc for CloudLogsService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var File_pkg_logs_pb_logs_proto protoreflect.FileDescriptor
var LogsService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "logs.LogsService", HandlerType: (*LogsServiceServer)(nil), Methods: []grpc.MethodDesc{}, Streams: []grpc.StreamDesc{ { StreamName: "Logs", Handler: _LogsService_Logs_Handler, ServerStreams: true, }, }, Metadata: "pkg/logs/pb/logs.proto", }
LogsService_ServiceDesc is the grpc.ServiceDesc for LogsService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterCloudLogsServiceServer ¶ added in v1.16.29
func RegisterCloudLogsServiceServer(s grpc.ServiceRegistrar, srv CloudLogsServiceServer)
func RegisterLogsServiceServer ¶
func RegisterLogsServiceServer(s grpc.ServiceRegistrar, srv LogsServiceServer)
Types ¶
type CloudLogsServiceClient ¶ added in v1.16.29
type CloudLogsServiceClient interface { Stream(ctx context.Context, opts ...grpc.CallOption) (CloudLogsService_StreamClient, error) Logs(ctx context.Context, in *LogRequest, opts ...grpc.CallOption) (CloudLogsService_LogsClient, error) }
CloudLogsServiceClient is the client API for CloudLogsService service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
func NewCloudLogsServiceClient ¶ added in v1.16.29
func NewCloudLogsServiceClient(cc grpc.ClientConnInterface) CloudLogsServiceClient
type CloudLogsServiceServer ¶ added in v1.16.29
type CloudLogsServiceServer interface { Stream(CloudLogsService_StreamServer) error Logs(*LogRequest, CloudLogsService_LogsServer) error // contains filtered or unexported methods }
CloudLogsServiceServer is the server API for CloudLogsService service. All implementations must embed UnimplementedCloudLogsServiceServer for forward compatibility
type CloudLogsService_LogsClient ¶ added in v1.16.29
type CloudLogsService_LogsClient interface { Recv() (*Log, error) grpc.ClientStream }
type CloudLogsService_LogsServer ¶ added in v1.16.29
type CloudLogsService_LogsServer interface { Send(*Log) error grpc.ServerStream }
type CloudLogsService_StreamClient ¶ added in v1.16.29
type CloudLogsService_StreamClient interface { Send(*Log) error CloseAndRecv() (*StreamResponse, error) grpc.ClientStream }
type CloudLogsService_StreamServer ¶ added in v1.16.29
type CloudLogsService_StreamServer interface { SendAndClose(*StreamResponse) error Recv() (*Log, error) grpc.ServerStream }
type Log ¶ added in v1.16.29
type Log struct { Time *timestamppb.Timestamp `protobuf:"bytes,1,opt,name=time,proto3" json:"time,omitempty"` Content string `protobuf:"bytes,2,opt,name=content,proto3" json:"content,omitempty"` Error bool `protobuf:"varint,3,opt,name=error,proto3" json:"error,omitempty"` Type string `protobuf:"bytes,4,opt,name=type,proto3" json:"type,omitempty"` Source string `protobuf:"bytes,5,opt,name=source,proto3" json:"source,omitempty"` Version string `protobuf:"bytes,6,opt,name=version,proto3" json:"version,omitempty"` Metadata map[string]string `` /* 157-byte string literal not displayed */ // contains filtered or unexported fields }
func MapResponseToPB ¶
func MapResponseToPB(r events.LogResponse) *Log
func (*Log) Descriptor
deprecated
added in
v1.16.29
func (*Log) GetContent ¶ added in v1.16.29
func (*Log) GetMetadata ¶ added in v1.16.29
func (*Log) GetTime ¶ added in v1.16.29
func (x *Log) GetTime() *timestamppb.Timestamp
func (*Log) GetVersion ¶ added in v1.16.29
func (*Log) ProtoMessage ¶ added in v1.16.29
func (*Log) ProtoMessage()
func (*Log) ProtoReflect ¶ added in v1.16.29
func (x *Log) ProtoReflect() protoreflect.Message
type LogRequest ¶
type LogRequest struct { ExecutionId string `protobuf:"bytes,2,opt,name=execution_id,json=executionId,proto3" json:"execution_id,omitempty"` // contains filtered or unexported fields }
func (*LogRequest) Descriptor
deprecated
func (*LogRequest) Descriptor() ([]byte, []int)
Deprecated: Use LogRequest.ProtoReflect.Descriptor instead.
func (*LogRequest) GetExecutionId ¶
func (x *LogRequest) GetExecutionId() string
func (*LogRequest) ProtoMessage ¶
func (*LogRequest) ProtoMessage()
func (*LogRequest) ProtoReflect ¶
func (x *LogRequest) ProtoReflect() protoreflect.Message
func (*LogRequest) Reset ¶
func (x *LogRequest) Reset()
func (*LogRequest) String ¶
func (x *LogRequest) String() string
type LogsServiceClient ¶
type LogsServiceClient interface {
Logs(ctx context.Context, in *LogRequest, opts ...grpc.CallOption) (LogsService_LogsClient, error)
}
LogsServiceClient is the client API for LogsService service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
func NewLogsServiceClient ¶
func NewLogsServiceClient(cc grpc.ClientConnInterface) LogsServiceClient
type LogsServiceServer ¶
type LogsServiceServer interface { Logs(*LogRequest, LogsService_LogsServer) error // contains filtered or unexported methods }
LogsServiceServer is the server API for LogsService service. All implementations must embed UnimplementedLogsServiceServer for forward compatibility
type LogsService_LogsClient ¶
type LogsService_LogsClient interface { Recv() (*Log, error) grpc.ClientStream }
type LogsService_LogsServer ¶
type LogsService_LogsServer interface { Send(*Log) error grpc.ServerStream }
type StreamResponse ¶ added in v1.16.29
type StreamResponse struct { Message string `protobuf:"bytes,1,opt,name=message,proto3" json:"message,omitempty"` Status StreamResponseStatus `protobuf:"varint,2,opt,name=status,proto3,enum=logs.StreamResponseStatus" json:"status,omitempty"` // contains filtered or unexported fields }
func (*StreamResponse) Descriptor
deprecated
added in
v1.16.29
func (*StreamResponse) Descriptor() ([]byte, []int)
Deprecated: Use StreamResponse.ProtoReflect.Descriptor instead.
func (*StreamResponse) GetMessage ¶ added in v1.16.29
func (x *StreamResponse) GetMessage() string
func (*StreamResponse) GetStatus ¶ added in v1.16.29
func (x *StreamResponse) GetStatus() StreamResponseStatus
func (*StreamResponse) ProtoMessage ¶ added in v1.16.29
func (*StreamResponse) ProtoMessage()
func (*StreamResponse) ProtoReflect ¶ added in v1.16.29
func (x *StreamResponse) ProtoReflect() protoreflect.Message
func (*StreamResponse) Reset ¶ added in v1.16.29
func (x *StreamResponse) Reset()
func (*StreamResponse) String ¶ added in v1.16.29
func (x *StreamResponse) String() string
type StreamResponseStatus ¶ added in v1.16.29
type StreamResponseStatus int32
const ( StreamResponseStatus_Completed StreamResponseStatus = 0 StreamResponseStatus_Failed StreamResponseStatus = 1 )
func (StreamResponseStatus) Descriptor ¶ added in v1.16.29
func (StreamResponseStatus) Descriptor() protoreflect.EnumDescriptor
func (StreamResponseStatus) Enum ¶ added in v1.16.29
func (x StreamResponseStatus) Enum() *StreamResponseStatus
func (StreamResponseStatus) EnumDescriptor
deprecated
added in
v1.16.29
func (StreamResponseStatus) EnumDescriptor() ([]byte, []int)
Deprecated: Use StreamResponseStatus.Descriptor instead.
func (StreamResponseStatus) Number ¶ added in v1.16.29
func (x StreamResponseStatus) Number() protoreflect.EnumNumber
func (StreamResponseStatus) String ¶ added in v1.16.29
func (x StreamResponseStatus) String() string
func (StreamResponseStatus) Type ¶ added in v1.16.29
func (StreamResponseStatus) Type() protoreflect.EnumType
type UnimplementedCloudLogsServiceServer ¶ added in v1.16.29
type UnimplementedCloudLogsServiceServer struct { }
UnimplementedCloudLogsServiceServer must be embedded to have forward compatible implementations.
type UnimplementedLogsServiceServer ¶
type UnimplementedLogsServiceServer struct { }
UnimplementedLogsServiceServer must be embedded to have forward compatible implementations.
func (UnimplementedLogsServiceServer) Logs ¶
func (UnimplementedLogsServiceServer) Logs(*LogRequest, LogsService_LogsServer) error
type UnsafeCloudLogsServiceServer ¶ added in v1.16.29
type UnsafeCloudLogsServiceServer interface {
// contains filtered or unexported methods
}
UnsafeCloudLogsServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to CloudLogsServiceServer will result in compilation errors.
type UnsafeLogsServiceServer ¶
type UnsafeLogsServiceServer interface {
// contains filtered or unexported methods
}
UnsafeLogsServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to LogsServiceServer will result in compilation errors.