Documentation ¶
Overview ¶
Package profilestorev1alpha1 is a reverse proxy.
It translates gRPC into RESTful JSON APIs.
Index ¶
- Variables
- func RegisterProfileStoreServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
- func RegisterProfileStoreServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client ProfileStoreServiceClient) error
- func RegisterProfileStoreServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, ...) (err error)
- func RegisterProfileStoreServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server ProfileStoreServiceServer) error
- func RegisterProfileStoreServiceServer(s grpc.ServiceRegistrar, srv ProfileStoreServiceServer)
- type Label
- func (*Label) Descriptor() ([]byte, []int)deprecated
- func (x *Label) GetName() string
- func (x *Label) GetValue() string
- func (m *Label) MarshalToSizedBufferVT(dAtA []byte) (int, error)
- func (m *Label) MarshalToVT(dAtA []byte) (int, error)
- func (m *Label) MarshalVT() (dAtA []byte, err error)
- func (*Label) ProtoMessage()
- func (x *Label) ProtoReflect() protoreflect.Message
- func (x *Label) Reset()
- func (m *Label) SizeVT() (n int)
- func (x *Label) String() string
- func (m *Label) UnmarshalVT(dAtA []byte) error
- type LabelSet
- func (*LabelSet) Descriptor() ([]byte, []int)deprecated
- func (x *LabelSet) GetLabels() []*Label
- func (m *LabelSet) MarshalToSizedBufferVT(dAtA []byte) (int, error)
- func (m *LabelSet) MarshalToVT(dAtA []byte) (int, error)
- func (m *LabelSet) MarshalVT() (dAtA []byte, err error)
- func (*LabelSet) ProtoMessage()
- func (x *LabelSet) ProtoReflect() protoreflect.Message
- func (x *LabelSet) Reset()
- func (m *LabelSet) SizeVT() (n int)
- func (x *LabelSet) String() string
- func (m *LabelSet) UnmarshalVT(dAtA []byte) error
- type ProfileStoreServiceClient
- type ProfileStoreServiceServer
- type RawProfileSeries
- func (*RawProfileSeries) Descriptor() ([]byte, []int)deprecated
- func (x *RawProfileSeries) GetLabels() *LabelSet
- func (x *RawProfileSeries) GetSamples() []*RawSample
- func (m *RawProfileSeries) MarshalToSizedBufferVT(dAtA []byte) (int, error)
- func (m *RawProfileSeries) MarshalToVT(dAtA []byte) (int, error)
- func (m *RawProfileSeries) MarshalVT() (dAtA []byte, err error)
- func (*RawProfileSeries) ProtoMessage()
- func (x *RawProfileSeries) ProtoReflect() protoreflect.Message
- func (x *RawProfileSeries) Reset()
- func (m *RawProfileSeries) SizeVT() (n int)
- func (x *RawProfileSeries) String() string
- func (m *RawProfileSeries) UnmarshalVT(dAtA []byte) error
- type RawSample
- func (*RawSample) Descriptor() ([]byte, []int)deprecated
- func (x *RawSample) GetRawProfile() []byte
- func (m *RawSample) MarshalToSizedBufferVT(dAtA []byte) (int, error)
- func (m *RawSample) MarshalToVT(dAtA []byte) (int, error)
- func (m *RawSample) MarshalVT() (dAtA []byte, err error)
- func (*RawSample) ProtoMessage()
- func (x *RawSample) ProtoReflect() protoreflect.Message
- func (x *RawSample) Reset()
- func (m *RawSample) SizeVT() (n int)
- func (x *RawSample) String() string
- func (m *RawSample) UnmarshalVT(dAtA []byte) error
- type UnimplementedProfileStoreServiceServer
- type UnsafeProfileStoreServiceServer
- type WriteRawRequest
- func (*WriteRawRequest) Descriptor() ([]byte, []int)deprecated
- func (x *WriteRawRequest) GetNormalized() bool
- func (x *WriteRawRequest) GetSeries() []*RawProfileSeries
- func (x *WriteRawRequest) GetTenant() stringdeprecated
- func (m *WriteRawRequest) MarshalToSizedBufferVT(dAtA []byte) (int, error)
- func (m *WriteRawRequest) MarshalToVT(dAtA []byte) (int, error)
- func (m *WriteRawRequest) MarshalVT() (dAtA []byte, err error)
- func (*WriteRawRequest) ProtoMessage()
- func (x *WriteRawRequest) ProtoReflect() protoreflect.Message
- func (x *WriteRawRequest) Reset()
- func (m *WriteRawRequest) SizeVT() (n int)
- func (x *WriteRawRequest) String() string
- func (m *WriteRawRequest) UnmarshalVT(dAtA []byte) error
- type WriteRawResponse
- func (*WriteRawResponse) Descriptor() ([]byte, []int)deprecated
- func (m *WriteRawResponse) MarshalToSizedBufferVT(dAtA []byte) (int, error)
- func (m *WriteRawResponse) MarshalToVT(dAtA []byte) (int, error)
- func (m *WriteRawResponse) MarshalVT() (dAtA []byte, err error)
- func (*WriteRawResponse) ProtoMessage()
- func (x *WriteRawResponse) ProtoReflect() protoreflect.Message
- func (x *WriteRawResponse) Reset()
- func (m *WriteRawResponse) SizeVT() (n int)
- func (x *WriteRawResponse) String() string
- func (m *WriteRawResponse) UnmarshalVT(dAtA []byte) error
Constants ¶
This section is empty.
Variables ¶
var ( ErrInvalidLength = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflow = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroup = fmt.Errorf("proto: unexpected end of group") )
var File_parca_profilestore_v1alpha1_profilestore_proto protoreflect.FileDescriptor
var ProfileStoreService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "parca.profilestore.v1alpha1.ProfileStoreService", HandlerType: (*ProfileStoreServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "WriteRaw", Handler: _ProfileStoreService_WriteRaw_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "parca/profilestore/v1alpha1/profilestore.proto", }
ProfileStoreService_ServiceDesc is the grpc.ServiceDesc for ProfileStoreService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterProfileStoreServiceHandler ¶
func RegisterProfileStoreServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
RegisterProfileStoreServiceHandler registers the http handlers for service ProfileStoreService to "mux". The handlers forward requests to the grpc endpoint over "conn".
func RegisterProfileStoreServiceHandlerClient ¶
func RegisterProfileStoreServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client ProfileStoreServiceClient) error
RegisterProfileStoreServiceHandlerClient registers the http handlers for service ProfileStoreService to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "ProfileStoreServiceClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "ProfileStoreServiceClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "ProfileStoreServiceClient" to call the correct interceptors.
func RegisterProfileStoreServiceHandlerFromEndpoint ¶
func RegisterProfileStoreServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)
RegisterProfileStoreServiceHandlerFromEndpoint is same as RegisterProfileStoreServiceHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.
func RegisterProfileStoreServiceHandlerServer ¶
func RegisterProfileStoreServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server ProfileStoreServiceServer) error
RegisterProfileStoreServiceHandlerServer registers the http handlers for service ProfileStoreService to "mux". UnaryRPC :call ProfileStoreServiceServer 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 RegisterProfileStoreServiceHandlerFromEndpoint instead.
func RegisterProfileStoreServiceServer ¶
func RegisterProfileStoreServiceServer(s grpc.ServiceRegistrar, srv ProfileStoreServiceServer)
Types ¶
type Label ¶
type Label struct { // name is the label name Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // value is the value for the label name Value string `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"` // contains filtered or unexported fields }
Label is a key value pair of identifiers
func (*Label) Descriptor
deprecated
func (*Label) MarshalToSizedBufferVT ¶ added in v0.5.0
func (*Label) ProtoMessage ¶
func (*Label) ProtoMessage()
func (*Label) ProtoReflect ¶
func (x *Label) ProtoReflect() protoreflect.Message
func (*Label) UnmarshalVT ¶ added in v0.5.0
type LabelSet ¶
type LabelSet struct { // labels are the grouping of labels Labels []*Label `protobuf:"bytes,1,rep,name=labels,proto3" json:"labels,omitempty"` // contains filtered or unexported fields }
LabelSet is a group of labels
func (*LabelSet) Descriptor
deprecated
func (*LabelSet) MarshalToSizedBufferVT ¶ added in v0.5.0
func (*LabelSet) MarshalToVT ¶ added in v0.5.0
func (*LabelSet) ProtoMessage ¶
func (*LabelSet) ProtoMessage()
func (*LabelSet) ProtoReflect ¶
func (x *LabelSet) ProtoReflect() protoreflect.Message
func (*LabelSet) UnmarshalVT ¶ added in v0.5.0
type ProfileStoreServiceClient ¶
type ProfileStoreServiceClient interface { // WriteRaw accepts a raw set of bytes of a pprof file WriteRaw(ctx context.Context, in *WriteRawRequest, opts ...grpc.CallOption) (*WriteRawResponse, error) }
ProfileStoreServiceClient is the client API for ProfileStoreService 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 NewProfileStoreServiceClient ¶
func NewProfileStoreServiceClient(cc grpc.ClientConnInterface) ProfileStoreServiceClient
type ProfileStoreServiceServer ¶
type ProfileStoreServiceServer interface { // WriteRaw accepts a raw set of bytes of a pprof file WriteRaw(context.Context, *WriteRawRequest) (*WriteRawResponse, error) // contains filtered or unexported methods }
ProfileStoreServiceServer is the server API for ProfileStoreService service. All implementations must embed UnimplementedProfileStoreServiceServer for forward compatibility
type RawProfileSeries ¶
type RawProfileSeries struct { // LabelSet is the key value pairs to identify the corresponding profile Labels *LabelSet `protobuf:"bytes,1,opt,name=labels,proto3" json:"labels,omitempty"` // samples are the set of profile bytes Samples []*RawSample `protobuf:"bytes,2,rep,name=samples,proto3" json:"samples,omitempty"` // contains filtered or unexported fields }
RawProfileSeries represents the pprof profile and its associated labels
func (*RawProfileSeries) Descriptor
deprecated
func (*RawProfileSeries) Descriptor() ([]byte, []int)
Deprecated: Use RawProfileSeries.ProtoReflect.Descriptor instead.
func (*RawProfileSeries) GetLabels ¶
func (x *RawProfileSeries) GetLabels() *LabelSet
func (*RawProfileSeries) GetSamples ¶
func (x *RawProfileSeries) GetSamples() []*RawSample
func (*RawProfileSeries) MarshalToSizedBufferVT ¶ added in v0.5.0
func (m *RawProfileSeries) MarshalToSizedBufferVT(dAtA []byte) (int, error)
func (*RawProfileSeries) MarshalToVT ¶ added in v0.5.0
func (m *RawProfileSeries) MarshalToVT(dAtA []byte) (int, error)
func (*RawProfileSeries) MarshalVT ¶ added in v0.5.0
func (m *RawProfileSeries) MarshalVT() (dAtA []byte, err error)
func (*RawProfileSeries) ProtoMessage ¶
func (*RawProfileSeries) ProtoMessage()
func (*RawProfileSeries) ProtoReflect ¶
func (x *RawProfileSeries) ProtoReflect() protoreflect.Message
func (*RawProfileSeries) Reset ¶
func (x *RawProfileSeries) Reset()
func (*RawProfileSeries) SizeVT ¶ added in v0.5.0
func (m *RawProfileSeries) SizeVT() (n int)
func (*RawProfileSeries) String ¶
func (x *RawProfileSeries) String() string
func (*RawProfileSeries) UnmarshalVT ¶ added in v0.5.0
func (m *RawProfileSeries) UnmarshalVT(dAtA []byte) error
type RawSample ¶
type RawSample struct { // raw_profile is the set of bytes of the pprof profile RawProfile []byte `protobuf:"bytes,1,opt,name=raw_profile,json=rawProfile,proto3" json:"raw_profile,omitempty"` // contains filtered or unexported fields }
RawSample is the set of bytes that correspond to a pprof profile
func (*RawSample) Descriptor
deprecated
func (*RawSample) GetRawProfile ¶
func (*RawSample) MarshalToSizedBufferVT ¶ added in v0.5.0
func (*RawSample) MarshalToVT ¶ added in v0.5.0
func (*RawSample) ProtoMessage ¶
func (*RawSample) ProtoMessage()
func (*RawSample) ProtoReflect ¶
func (x *RawSample) ProtoReflect() protoreflect.Message
func (*RawSample) UnmarshalVT ¶ added in v0.5.0
type UnimplementedProfileStoreServiceServer ¶
type UnimplementedProfileStoreServiceServer struct { }
UnimplementedProfileStoreServiceServer must be embedded to have forward compatible implementations.
func (UnimplementedProfileStoreServiceServer) WriteRaw ¶
func (UnimplementedProfileStoreServiceServer) WriteRaw(context.Context, *WriteRawRequest) (*WriteRawResponse, error)
type UnsafeProfileStoreServiceServer ¶
type UnsafeProfileStoreServiceServer interface {
// contains filtered or unexported methods
}
UnsafeProfileStoreServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to ProfileStoreServiceServer will result in compilation errors.
type WriteRawRequest ¶
type WriteRawRequest struct { // tenant is the given tenant to store the pprof profile under // // Deprecated: Do not use. Tenant string `protobuf:"bytes,1,opt,name=tenant,proto3" json:"tenant,omitempty"` // series is a set raw pprof profiles and accompanying labels Series []*RawProfileSeries `protobuf:"bytes,2,rep,name=series,proto3" json:"series,omitempty"` // normalized is a flag indicating if the addresses in the profile is normalized for position independent code Normalized bool `protobuf:"varint,3,opt,name=normalized,proto3" json:"normalized,omitempty"` // contains filtered or unexported fields }
WriteRawRequest writes a pprof profile for a given tenant
func (*WriteRawRequest) Descriptor
deprecated
func (*WriteRawRequest) Descriptor() ([]byte, []int)
Deprecated: Use WriteRawRequest.ProtoReflect.Descriptor instead.
func (*WriteRawRequest) GetNormalized ¶ added in v0.9.0
func (x *WriteRawRequest) GetNormalized() bool
func (*WriteRawRequest) GetSeries ¶
func (x *WriteRawRequest) GetSeries() []*RawProfileSeries
func (*WriteRawRequest) GetTenant
deprecated
func (x *WriteRawRequest) GetTenant() string
Deprecated: Do not use.
func (*WriteRawRequest) MarshalToSizedBufferVT ¶ added in v0.5.0
func (m *WriteRawRequest) MarshalToSizedBufferVT(dAtA []byte) (int, error)
func (*WriteRawRequest) MarshalToVT ¶ added in v0.5.0
func (m *WriteRawRequest) MarshalToVT(dAtA []byte) (int, error)
func (*WriteRawRequest) MarshalVT ¶ added in v0.5.0
func (m *WriteRawRequest) MarshalVT() (dAtA []byte, err error)
func (*WriteRawRequest) ProtoMessage ¶
func (*WriteRawRequest) ProtoMessage()
func (*WriteRawRequest) ProtoReflect ¶
func (x *WriteRawRequest) ProtoReflect() protoreflect.Message
func (*WriteRawRequest) Reset ¶
func (x *WriteRawRequest) Reset()
func (*WriteRawRequest) SizeVT ¶ added in v0.5.0
func (m *WriteRawRequest) SizeVT() (n int)
func (*WriteRawRequest) String ¶
func (x *WriteRawRequest) String() string
func (*WriteRawRequest) UnmarshalVT ¶ added in v0.5.0
func (m *WriteRawRequest) UnmarshalVT(dAtA []byte) error
type WriteRawResponse ¶
type WriteRawResponse struct {
// contains filtered or unexported fields
}
WriteRawResponse is the empty response
func (*WriteRawResponse) Descriptor
deprecated
func (*WriteRawResponse) Descriptor() ([]byte, []int)
Deprecated: Use WriteRawResponse.ProtoReflect.Descriptor instead.
func (*WriteRawResponse) MarshalToSizedBufferVT ¶ added in v0.5.0
func (m *WriteRawResponse) MarshalToSizedBufferVT(dAtA []byte) (int, error)
func (*WriteRawResponse) MarshalToVT ¶ added in v0.5.0
func (m *WriteRawResponse) MarshalToVT(dAtA []byte) (int, error)
func (*WriteRawResponse) MarshalVT ¶ added in v0.5.0
func (m *WriteRawResponse) MarshalVT() (dAtA []byte, err error)
func (*WriteRawResponse) ProtoMessage ¶
func (*WriteRawResponse) ProtoMessage()
func (*WriteRawResponse) ProtoReflect ¶
func (x *WriteRawResponse) ProtoReflect() protoreflect.Message
func (*WriteRawResponse) Reset ¶
func (x *WriteRawResponse) Reset()
func (*WriteRawResponse) SizeVT ¶ added in v0.5.0
func (m *WriteRawResponse) SizeVT() (n int)
func (*WriteRawResponse) String ¶
func (x *WriteRawResponse) String() string
func (*WriteRawResponse) UnmarshalVT ¶ added in v0.5.0
func (m *WriteRawResponse) UnmarshalVT(dAtA []byte) error