Documentation
¶
Overview ¶
Package telemetryv1alpha1 is a reverse proxy.
It translates gRPC into RESTful JSON APIs.
Index ¶
- Variables
- func RegisterTelemetryServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
- func RegisterTelemetryServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client TelemetryServiceClient) error
- func RegisterTelemetryServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, ...) (err error)
- func RegisterTelemetryServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server TelemetryServiceServer) error
- func RegisterTelemetryServiceServer(s grpc.ServiceRegistrar, srv TelemetryServiceServer)
- type ReportPanicRequest
- func (*ReportPanicRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ReportPanicRequest) GetMetadata() map[string]string
- func (x *ReportPanicRequest) GetStderr() string
- func (m *ReportPanicRequest) MarshalToSizedBufferVT(dAtA []byte) (int, error)
- func (m *ReportPanicRequest) MarshalToVT(dAtA []byte) (int, error)
- func (m *ReportPanicRequest) MarshalVT() (dAtA []byte, err error)
- func (*ReportPanicRequest) ProtoMessage()
- func (x *ReportPanicRequest) ProtoReflect() protoreflect.Message
- func (x *ReportPanicRequest) Reset()
- func (m *ReportPanicRequest) SizeVT() (n int)
- func (x *ReportPanicRequest) String() string
- func (m *ReportPanicRequest) UnmarshalVT(dAtA []byte) error
- type ReportPanicResponse
- func (*ReportPanicResponse) Descriptor() ([]byte, []int)deprecated
- func (m *ReportPanicResponse) MarshalToSizedBufferVT(dAtA []byte) (int, error)
- func (m *ReportPanicResponse) MarshalToVT(dAtA []byte) (int, error)
- func (m *ReportPanicResponse) MarshalVT() (dAtA []byte, err error)
- func (*ReportPanicResponse) ProtoMessage()
- func (x *ReportPanicResponse) ProtoReflect() protoreflect.Message
- func (x *ReportPanicResponse) Reset()
- func (m *ReportPanicResponse) SizeVT() (n int)
- func (x *ReportPanicResponse) String() string
- func (m *ReportPanicResponse) UnmarshalVT(dAtA []byte) error
- type TelemetryServiceClient
- type TelemetryServiceServer
- type UnimplementedTelemetryServiceServer
- type UnsafeTelemetryServiceServer
Constants ¶
This section is empty.
Variables ¶
var File_parca_telemetry_v1alpha1_telemetry_proto protoreflect.FileDescriptor
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. This client ignores the HTTP middlewares.
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. GRPC interceptors will not work for this type of registration. To use interceptors, you must use the "runtime.WithMiddlewares" option in the "runtime.NewServeMux" call.
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 `` /* 143-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.
func NewTelemetryServiceClient ¶
func NewTelemetryServiceClient(cc grpc.ClientConnInterface) TelemetryServiceClient
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 ¶
func (UnimplementedTelemetryServiceServer) ReportPanic(context.Context, *ReportPanicRequest) (*ReportPanicResponse, error)
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.