telemetryv1alpha1

package
v0.21.0 Latest Latest
Warning

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

Go to latest
Published: Feb 27, 2024 License: Apache-2.0 Imports: 18 Imported by: 1

Documentation

Overview

Package telemetryv1alpha1 is a reverse proxy.

It translates gRPC into RESTful JSON APIs.

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrInvalidLength        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflow          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroup = fmt.Errorf("proto: unexpected end of group")
)
View Source
var File_parca_telemetry_v1alpha1_telemetry_proto protoreflect.FileDescriptor
View Source
var TelemetryService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "parca.telemetry.v1alpha1.TelemetryService",
	HandlerType: (*TelemetryServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "ReportPanic",
			Handler:    _TelemetryService_ReportPanic_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "parca/telemetry/v1alpha1/telemetry.proto",
}

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

Functions

func RegisterTelemetryServiceHandler

func RegisterTelemetryServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error

RegisterTelemetryServiceHandler registers the http handlers for service TelemetryService to "mux". The handlers forward requests to the grpc endpoint over "conn".

func RegisterTelemetryServiceHandlerClient

func RegisterTelemetryServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client TelemetryServiceClient) error

RegisterTelemetryServiceHandlerClient registers the http handlers for service TelemetryService to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "TelemetryServiceClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "TelemetryServiceClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "TelemetryServiceClient" to call the correct interceptors.

func RegisterTelemetryServiceHandlerFromEndpoint

func RegisterTelemetryServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)

RegisterTelemetryServiceHandlerFromEndpoint is same as RegisterTelemetryServiceHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.

func RegisterTelemetryServiceHandlerServer

func RegisterTelemetryServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server TelemetryServiceServer) error

RegisterTelemetryServiceHandlerServer registers the http handlers for service TelemetryService to "mux". UnaryRPC :call TelemetryServiceServer directly. StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterTelemetryServiceHandlerFromEndpoint instead.

func RegisterTelemetryServiceServer

func RegisterTelemetryServiceServer(s grpc.ServiceRegistrar, srv TelemetryServiceServer)

Types

type ReportPanicRequest

type ReportPanicRequest struct {

	// Stderr from the agent that exited with an error.
	Stderr string `protobuf:"bytes,1,opt,name=stderr,proto3" json:"stderr,omitempty"`
	// Agent metadata.
	Metadata map[string]string `` /* 157-byte string literal not displayed */
	// contains filtered or unexported fields
}

ReportPanicRequest contained the info about a panic.

func (*ReportPanicRequest) Descriptor deprecated

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

Deprecated: Use ReportPanicRequest.ProtoReflect.Descriptor instead.

func (*ReportPanicRequest) GetMetadata

func (x *ReportPanicRequest) GetMetadata() map[string]string

func (*ReportPanicRequest) GetStderr

func (x *ReportPanicRequest) GetStderr() string

func (*ReportPanicRequest) MarshalToSizedBufferVT

func (m *ReportPanicRequest) MarshalToSizedBufferVT(dAtA []byte) (int, error)

func (*ReportPanicRequest) MarshalToVT

func (m *ReportPanicRequest) MarshalToVT(dAtA []byte) (int, error)

func (*ReportPanicRequest) MarshalVT

func (m *ReportPanicRequest) MarshalVT() (dAtA []byte, err error)

func (*ReportPanicRequest) ProtoMessage

func (*ReportPanicRequest) ProtoMessage()

func (*ReportPanicRequest) ProtoReflect

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

func (*ReportPanicRequest) Reset

func (x *ReportPanicRequest) Reset()

func (*ReportPanicRequest) SizeVT

func (m *ReportPanicRequest) SizeVT() (n int)

func (*ReportPanicRequest) String

func (x *ReportPanicRequest) String() string

func (*ReportPanicRequest) UnmarshalVT

func (m *ReportPanicRequest) UnmarshalVT(dAtA []byte) error

type ReportPanicResponse

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

ReportPanicResponse contains the response for a ReportPanicRequest.

func (*ReportPanicResponse) Descriptor deprecated

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

Deprecated: Use ReportPanicResponse.ProtoReflect.Descriptor instead.

func (*ReportPanicResponse) MarshalToSizedBufferVT

func (m *ReportPanicResponse) MarshalToSizedBufferVT(dAtA []byte) (int, error)

func (*ReportPanicResponse) MarshalToVT

func (m *ReportPanicResponse) MarshalToVT(dAtA []byte) (int, error)

func (*ReportPanicResponse) MarshalVT

func (m *ReportPanicResponse) MarshalVT() (dAtA []byte, err error)

func (*ReportPanicResponse) ProtoMessage

func (*ReportPanicResponse) ProtoMessage()

func (*ReportPanicResponse) ProtoReflect

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

func (*ReportPanicResponse) Reset

func (x *ReportPanicResponse) Reset()

func (*ReportPanicResponse) SizeVT

func (m *ReportPanicResponse) SizeVT() (n int)

func (*ReportPanicResponse) String

func (x *ReportPanicResponse) String() string

func (*ReportPanicResponse) UnmarshalVT

func (m *ReportPanicResponse) UnmarshalVT(dAtA []byte) error

type TelemetryServiceClient

type TelemetryServiceClient interface {
	// ReportPanic receives information from an Agent that panic'ed.
	ReportPanic(ctx context.Context, in *ReportPanicRequest, opts ...grpc.CallOption) (*ReportPanicResponse, error)
}

TelemetryServiceClient is the client API for TelemetryService 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 TelemetryServiceServer

type TelemetryServiceServer interface {
	// ReportPanic receives information from an Agent that panic'ed.
	ReportPanic(context.Context, *ReportPanicRequest) (*ReportPanicResponse, error)
	// contains filtered or unexported methods
}

TelemetryServiceServer is the server API for TelemetryService service. All implementations must embed UnimplementedTelemetryServiceServer for forward compatibility

type UnimplementedTelemetryServiceServer

type UnimplementedTelemetryServiceServer struct {
}

UnimplementedTelemetryServiceServer must be embedded to have forward compatible implementations.

func (UnimplementedTelemetryServiceServer) ReportPanic

type UnsafeTelemetryServiceServer

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

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

Jump to

Keyboard shortcuts

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