v1

package
v0.9.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 23, 2022 License: MIT Imports: 9 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var LogReaderService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "influxdata.grpc.binarylogsink.v1.LogReaderService",
	HandlerType: (*LogReaderServiceServer)(nil),
	Methods:     []grpc.MethodDesc{},
	Streams: []grpc.StreamDesc{
		{
			StreamName:    "Read",
			Handler:       _LogReaderService_Read_Handler,
			ServerStreams: true,
		},
	},
	Metadata: "root.proto",
}

LogReaderService_ServiceDesc is the grpc.ServiceDesc for LogReaderService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

View Source
var LogSinkService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "influxdata.grpc.binarylogsink.v1.LogSinkService",
	HandlerType: (*LogSinkServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "Write",
			Handler:    _LogSinkService_Write_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "root.proto",
}

LogSinkService_ServiceDesc is the grpc.ServiceDesc for LogSinkService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

Functions

func RegisterLogReaderServiceServer added in v0.8.0

func RegisterLogReaderServiceServer(s grpc.ServiceRegistrar, srv LogReaderServiceServer)

func RegisterLogSinkServiceServer

func RegisterLogSinkServiceServer(s grpc.ServiceRegistrar, srv LogSinkServiceServer)

Types

type LogReaderServiceClient added in v0.8.0

type LogReaderServiceClient interface {
	Read(ctx context.Context, in *ReadRequest, opts ...grpc.CallOption) (LogReaderService_ReadClient, error)
}

LogReaderServiceClient is the client API for LogReaderService 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 NewLogReaderServiceClient added in v0.8.0

func NewLogReaderServiceClient(cc grpc.ClientConnInterface) LogReaderServiceClient

type LogReaderServiceServer added in v0.8.0

type LogReaderServiceServer interface {
	Read(*ReadRequest, LogReaderService_ReadServer) error
	// contains filtered or unexported methods
}

LogReaderServiceServer is the server API for LogReaderService service. All implementations must embed UnimplementedLogReaderServiceServer for forward compatibility

type LogReaderService_ReadClient added in v0.8.0

type LogReaderService_ReadClient interface {
	Recv() (*ReadResponse, error)
	grpc.ClientStream
}

type LogReaderService_ReadServer added in v0.8.0

type LogReaderService_ReadServer interface {
	Send(*ReadResponse) error
	grpc.ServerStream
}

type LogSinkServiceClient

type LogSinkServiceClient interface {
	// Receives a GrpcLogEntry
	Write(ctx context.Context, in *WriteRequest, opts ...grpc.CallOption) (*WriteResponse, error)
}

LogSinkServiceClient is the client API for LogSinkService 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.

type LogSinkServiceServer

type LogSinkServiceServer interface {
	// Receives a GrpcLogEntry
	Write(context.Context, *WriteRequest) (*WriteResponse, error)
	// contains filtered or unexported methods
}

LogSinkServiceServer is the server API for LogSinkService service. All implementations must embed UnimplementedLogSinkServiceServer for forward compatibility

type ReadRequest added in v0.8.0

type ReadRequest struct {

	// Filter by trace ID.
	TraceId string `protobuf:"bytes,1,opt,name=trace_id,json=traceId,proto3" json:"trace_id,omitempty"`
	// Optionally filter by origin.
	Origin string `protobuf:"bytes,2,opt,name=origin,proto3" json:"origin,omitempty"`
	// contains filtered or unexported fields
}

Request object for reading gRPC log entries belonging to conversations.

func (*ReadRequest) Descriptor deprecated added in v0.8.0

func (*ReadRequest) Descriptor() ([]byte, []int)

Deprecated: Use ReadRequest.ProtoReflect.Descriptor instead.

func (*ReadRequest) GetOrigin added in v0.8.0

func (x *ReadRequest) GetOrigin() string

func (*ReadRequest) GetTraceId added in v0.8.0

func (x *ReadRequest) GetTraceId() string

func (*ReadRequest) ProtoMessage added in v0.8.0

func (*ReadRequest) ProtoMessage()

func (*ReadRequest) ProtoReflect added in v0.8.0

func (x *ReadRequest) ProtoReflect() protoreflect.Message

func (*ReadRequest) Reset added in v0.8.0

func (x *ReadRequest) Reset()

func (*ReadRequest) String added in v0.8.0

func (x *ReadRequest) String() string

type ReadResponse added in v0.8.0

type ReadResponse struct {
	Entry *grpc_binarylog_v1.GrpcLogEntry `protobuf:"bytes,1,opt,name=entry,proto3" json:"entry,omitempty"`
	// contains filtered or unexported fields
}

func (*ReadResponse) Descriptor deprecated added in v0.8.0

func (*ReadResponse) Descriptor() ([]byte, []int)

Deprecated: Use ReadResponse.ProtoReflect.Descriptor instead.

func (*ReadResponse) GetEntry added in v0.8.0

func (*ReadResponse) ProtoMessage added in v0.8.0

func (*ReadResponse) ProtoMessage()

func (*ReadResponse) ProtoReflect added in v0.8.0

func (x *ReadResponse) ProtoReflect() protoreflect.Message

func (*ReadResponse) Reset added in v0.8.0

func (x *ReadResponse) Reset()

func (*ReadResponse) String added in v0.8.0

func (x *ReadResponse) String() string

type UnimplementedLogReaderServiceServer added in v0.8.0

type UnimplementedLogReaderServiceServer struct {
}

UnimplementedLogReaderServiceServer must be embedded to have forward compatible implementations.

func (UnimplementedLogReaderServiceServer) Read added in v0.8.0

type UnimplementedLogSinkServiceServer

type UnimplementedLogSinkServiceServer struct {
}

UnimplementedLogSinkServiceServer must be embedded to have forward compatible implementations.

func (UnimplementedLogSinkServiceServer) Write

type UnsafeLogReaderServiceServer added in v0.8.0

type UnsafeLogReaderServiceServer interface {
	// contains filtered or unexported methods
}

UnsafeLogReaderServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to LogReaderServiceServer will result in compilation errors.

type UnsafeLogSinkServiceServer

type UnsafeLogSinkServiceServer interface {
	// contains filtered or unexported methods
}

UnsafeLogSinkServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to LogSinkServiceServer will result in compilation errors.

type WriteRequest

type WriteRequest struct {

	// A unique ID for the call to enable the receiving server to correctly
	// stitch together conversations from multiple clients (in grpc the call_id
	// field is only unique for each caller).
	// Use some unique property of the workload to generate the ID: something
	// random, or podname + startup time or similar, followed by the actual
	// gRPC call_id.
	// Recall that pod names and IP addresses will usually stay the same across
	// container restarts in k8s.
	CallId string `protobuf:"bytes,1,opt,name=call_id,json=callId,proto3" json:"call_id,omitempty"`
	// Text identifier to differentiate where the logs came from, if that's
	// important to you. E.g. if using this API to collect logs for comparison of
	// correctness or performance, you might use this to differentiate them.
	// We'll be using "iox" and "tsm" for our query correctness work.
	// If you don't care about this you can safely put any old string here.
	Origin string `protobuf:"bytes,2,opt,name=origin,proto3" json:"origin,omitempty"`
	// The actual gRPC log entry being written.
	Entry *grpc_binarylog_v1.GrpcLogEntry `protobuf:"bytes,3,opt,name=entry,proto3" json:"entry,omitempty"`
	// contains filtered or unexported fields
}

Request object for sending a gRPC log entry to be written.

func (*WriteRequest) Descriptor deprecated

func (*WriteRequest) Descriptor() ([]byte, []int)

Deprecated: Use WriteRequest.ProtoReflect.Descriptor instead.

func (*WriteRequest) GetCallId

func (x *WriteRequest) GetCallId() string

func (*WriteRequest) GetEntry

func (*WriteRequest) GetOrigin

func (x *WriteRequest) GetOrigin() string

func (*WriteRequest) ProtoMessage

func (*WriteRequest) ProtoMessage()

func (*WriteRequest) ProtoReflect

func (x *WriteRequest) ProtoReflect() protoreflect.Message

func (*WriteRequest) Reset

func (x *WriteRequest) Reset()

func (*WriteRequest) String

func (x *WriteRequest) String() string

type WriteResponse

type WriteResponse struct {
	// contains filtered or unexported fields
}

Response to the Write request

func (*WriteResponse) Descriptor deprecated

func (*WriteResponse) Descriptor() ([]byte, []int)

Deprecated: Use WriteResponse.ProtoReflect.Descriptor instead.

func (*WriteResponse) ProtoMessage

func (*WriteResponse) ProtoMessage()

func (*WriteResponse) ProtoReflect

func (x *WriteResponse) ProtoReflect() protoreflect.Message

func (*WriteResponse) Reset

func (x *WriteResponse) Reset()

func (*WriteResponse) String

func (x *WriteResponse) String() string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL