Documentation ¶
Index ¶
- Variables
- func RegisterInspectorServer(s grpc.ServiceRegistrar, srv InspectorServer)
- type Event
- type EventProbe
- type InspectorClient
- type InspectorServer
- type Inspector_WatchEventClient
- type Inspector_WatchEventServer
- type Meta
- func (*Meta) Descriptor() ([]byte, []int)deprecated
- func (x *Meta) GetNamespace() string
- func (x *Meta) GetNetns() string
- func (x *Meta) GetNode() string
- func (x *Meta) GetPod() string
- func (*Meta) ProtoMessage()
- func (x *Meta) ProtoReflect() protoreflect.Message
- func (x *Meta) Reset()
- func (x *Meta) String() string
- type Metric
- type MetricProbe
- type Probe
- type ProbeType
- type QueryMetricRequest
- func (*QueryMetricRequest) Descriptor() ([]byte, []int)deprecated
- func (x *QueryMetricRequest) GetFilter() *Meta
- func (x *QueryMetricRequest) GetName() string
- func (*QueryMetricRequest) ProtoMessage()
- func (x *QueryMetricRequest) ProtoReflect() protoreflect.Message
- func (x *QueryMetricRequest) Reset()
- func (x *QueryMetricRequest) String() string
- type QueryMetricResponse
- func (*QueryMetricResponse) Descriptor() ([]byte, []int)deprecated
- func (x *QueryMetricResponse) GetMetrics() []*Metric
- func (x *QueryMetricResponse) GetName() string
- func (*QueryMetricResponse) ProtoMessage()
- func (x *QueryMetricResponse) ProtoReflect() protoreflect.Message
- func (x *QueryMetricResponse) Reset()
- func (x *QueryMetricResponse) String() string
- type RawEvent
- type UnimplementedInspectorServer
- type UnsafeInspectorServer
- type WatchReply
- type WatchRequest
- func (*WatchRequest) Descriptor() ([]byte, []int)deprecated
- func (x *WatchRequest) GetFilter() *Meta
- func (x *WatchRequest) GetName() string
- func (*WatchRequest) ProtoMessage()
- func (x *WatchRequest) ProtoReflect() protoreflect.Message
- func (x *WatchRequest) Reset()
- func (x *WatchRequest) String() string
Constants ¶
This section is empty.
Variables ¶
var File_inspector_proto protoreflect.FileDescriptor
var Inspector_ServiceDesc = grpc.ServiceDesc{ ServiceName: "proto.inspector", HandlerType: (*InspectorServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "QueryMetric", Handler: _Inspector_QueryMetric_Handler, }, }, Streams: []grpc.StreamDesc{ { StreamName: "WatchEvent", Handler: _Inspector_WatchEvent_Handler, ServerStreams: true, }, }, Metadata: "inspector.proto", }
Inspector_ServiceDesc is the grpc.ServiceDesc for Inspector service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterInspectorServer ¶
func RegisterInspectorServer(s grpc.ServiceRegistrar, srv InspectorServer)
Types ¶
type Event ¶
type Event struct { Meta *Meta `protobuf:"bytes,1,opt,name=meta,proto3" json:"meta,omitempty"` Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` Value string `protobuf:"bytes,3,opt,name=value,proto3" json:"value,omitempty"` // contains filtered or unexported fields }
func (*Event) Descriptor
deprecated
func (*Event) ProtoMessage ¶
func (*Event) ProtoMessage()
func (*Event) ProtoReflect ¶
func (x *Event) ProtoReflect() protoreflect.Message
type EventProbe ¶
type InspectorClient ¶
type InspectorClient interface { WatchEvent(ctx context.Context, in *WatchRequest, opts ...grpc.CallOption) (Inspector_WatchEventClient, error) QueryMetric(ctx context.Context, in *QueryMetricRequest, opts ...grpc.CallOption) (*QueryMetricResponse, error) }
InspectorClient is the client API for Inspector 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 NewInspectorClient ¶
func NewInspectorClient(cc grpc.ClientConnInterface) InspectorClient
type InspectorServer ¶
type InspectorServer interface { WatchEvent(*WatchRequest, Inspector_WatchEventServer) error QueryMetric(context.Context, *QueryMetricRequest) (*QueryMetricResponse, error) // contains filtered or unexported methods }
InspectorServer is the server API for Inspector service. All implementations must embed UnimplementedInspectorServer for forward compatibility
type Inspector_WatchEventClient ¶
type Inspector_WatchEventClient interface { Recv() (*WatchReply, error) grpc.ClientStream }
type Inspector_WatchEventServer ¶
type Inspector_WatchEventServer interface { Send(*WatchReply) error grpc.ServerStream }
type Meta ¶
type Meta struct { Node string `protobuf:"bytes,1,opt,name=node,proto3" json:"node,omitempty"` Pod string `protobuf:"bytes,2,opt,name=pod,proto3" json:"pod,omitempty"` Namespace string `protobuf:"bytes,3,opt,name=namespace,proto3" json:"namespace,omitempty"` Netns string `protobuf:"bytes,4,opt,name=netns,proto3" json:"netns,omitempty"` // contains filtered or unexported fields }
func (*Meta) Descriptor
deprecated
func (*Meta) GetNamespace ¶
func (*Meta) ProtoMessage ¶
func (*Meta) ProtoMessage()
func (*Meta) ProtoReflect ¶
func (x *Meta) ProtoReflect() protoreflect.Message
type Metric ¶
type Metric struct { Meta *Meta `protobuf:"bytes,1,opt,name=meta,proto3" json:"meta,omitempty"` Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` Value float32 `protobuf:"fixed32,3,opt,name=value,proto3" json:"value,omitempty"` // contains filtered or unexported fields }
func (*Metric) Descriptor
deprecated
func (*Metric) ProtoMessage ¶
func (*Metric) ProtoMessage()
func (*Metric) ProtoReflect ¶
func (x *Metric) ProtoReflect() protoreflect.Message
type MetricProbe ¶
type QueryMetricRequest ¶
type QueryMetricRequest struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` Filter *Meta `protobuf:"bytes,2,opt,name=filter,proto3" json:"filter,omitempty"` // contains filtered or unexported fields }
func (*QueryMetricRequest) Descriptor
deprecated
func (*QueryMetricRequest) Descriptor() ([]byte, []int)
Deprecated: Use QueryMetricRequest.ProtoReflect.Descriptor instead.
func (*QueryMetricRequest) GetFilter ¶
func (x *QueryMetricRequest) GetFilter() *Meta
func (*QueryMetricRequest) GetName ¶
func (x *QueryMetricRequest) GetName() string
func (*QueryMetricRequest) ProtoMessage ¶
func (*QueryMetricRequest) ProtoMessage()
func (*QueryMetricRequest) ProtoReflect ¶
func (x *QueryMetricRequest) ProtoReflect() protoreflect.Message
func (*QueryMetricRequest) Reset ¶
func (x *QueryMetricRequest) Reset()
func (*QueryMetricRequest) String ¶
func (x *QueryMetricRequest) String() string
type QueryMetricResponse ¶
type QueryMetricResponse struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` Metrics []*Metric `protobuf:"bytes,2,rep,name=metrics,proto3" json:"metrics,omitempty"` // contains filtered or unexported fields }
func (*QueryMetricResponse) Descriptor
deprecated
func (*QueryMetricResponse) Descriptor() ([]byte, []int)
Deprecated: Use QueryMetricResponse.ProtoReflect.Descriptor instead.
func (*QueryMetricResponse) GetMetrics ¶
func (x *QueryMetricResponse) GetMetrics() []*Metric
func (*QueryMetricResponse) GetName ¶
func (x *QueryMetricResponse) GetName() string
func (*QueryMetricResponse) ProtoMessage ¶
func (*QueryMetricResponse) ProtoMessage()
func (*QueryMetricResponse) ProtoReflect ¶
func (x *QueryMetricResponse) ProtoReflect() protoreflect.Message
func (*QueryMetricResponse) Reset ¶
func (x *QueryMetricResponse) Reset()
func (*QueryMetricResponse) String ¶
func (x *QueryMetricResponse) String() string
type UnimplementedInspectorServer ¶
type UnimplementedInspectorServer struct { }
UnimplementedInspectorServer must be embedded to have forward compatible implementations.
func (UnimplementedInspectorServer) QueryMetric ¶
func (UnimplementedInspectorServer) QueryMetric(context.Context, *QueryMetricRequest) (*QueryMetricResponse, error)
func (UnimplementedInspectorServer) WatchEvent ¶
func (UnimplementedInspectorServer) WatchEvent(*WatchRequest, Inspector_WatchEventServer) error
type UnsafeInspectorServer ¶
type UnsafeInspectorServer interface {
// contains filtered or unexported methods
}
UnsafeInspectorServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to InspectorServer will result in compilation errors.
type WatchReply ¶
type WatchReply struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` Event *Event `protobuf:"bytes,2,opt,name=event,proto3" json:"event,omitempty"` // contains filtered or unexported fields }
func (*WatchReply) Descriptor
deprecated
func (*WatchReply) Descriptor() ([]byte, []int)
Deprecated: Use WatchReply.ProtoReflect.Descriptor instead.
func (*WatchReply) GetEvent ¶
func (x *WatchReply) GetEvent() *Event
func (*WatchReply) GetName ¶
func (x *WatchReply) GetName() string
func (*WatchReply) ProtoMessage ¶
func (*WatchReply) ProtoMessage()
func (*WatchReply) ProtoReflect ¶
func (x *WatchReply) ProtoReflect() protoreflect.Message
func (*WatchReply) Reset ¶
func (x *WatchReply) Reset()
func (*WatchReply) String ¶
func (x *WatchReply) String() string
type WatchRequest ¶
type WatchRequest struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` Filter *Meta `protobuf:"bytes,2,opt,name=filter,proto3" json:"filter,omitempty"` // contains filtered or unexported fields }
func (*WatchRequest) Descriptor
deprecated
func (*WatchRequest) Descriptor() ([]byte, []int)
Deprecated: Use WatchRequest.ProtoReflect.Descriptor instead.
func (*WatchRequest) GetFilter ¶
func (x *WatchRequest) GetFilter() *Meta
func (*WatchRequest) GetName ¶
func (x *WatchRequest) GetName() string
func (*WatchRequest) ProtoMessage ¶
func (*WatchRequest) ProtoMessage()
func (*WatchRequest) ProtoReflect ¶
func (x *WatchRequest) ProtoReflect() protoreflect.Message
func (*WatchRequest) Reset ¶
func (x *WatchRequest) Reset()
func (*WatchRequest) String ¶
func (x *WatchRequest) String() string