Documentation
¶
Index ¶
- Constants
- Variables
- func RegisterInspectorServer(s grpc.ServiceRegistrar, srv InspectorServer)
- type CallRequest
- func (*CallRequest) Descriptor() ([]byte, []int)deprecated
- func (x *CallRequest) GetBody() *anypb.Any
- func (x *CallRequest) GetNode() string
- func (x *CallRequest) GetTarget() *Target
- func (*CallRequest) ProtoMessage()
- func (x *CallRequest) ProtoReflect() protoreflect.Message
- func (x *CallRequest) Reset()
- func (x *CallRequest) String() string
- type CallResponse
- type DeadLetter
- func (*DeadLetter) Descriptor() ([]byte, []int)deprecated
- func (x *DeadLetter) GetFrom() *v1.PID
- func (x *DeadLetter) GetReason() string
- func (x *DeadLetter) GetTo() *v1.PID
- func (x *DeadLetter) GetType() string
- func (*DeadLetter) ProtoMessage()
- func (x *DeadLetter) ProtoReflect() protoreflect.Message
- func (x *DeadLetter) Reset()
- func (x *DeadLetter) String() string
- type Event
- func (*Event) Descriptor() ([]byte, []int)deprecated
- func (x *Event) GetDeadLetter() *DeadLetter
- func (x *Event) GetExited() *Exited
- func (x *Event) GetKind() isEvent_Kind
- func (x *Event) GetLinkDown() *LinkDown
- func (x *Event) GetLinkUp() *NodeID
- func (x *Event) GetMissed() uint64
- func (x *Event) GetSpawned() *ProcessInfo
- func (x *Event) GetTime() *timestamppb.Timestamp
- func (*Event) ProtoMessage()
- func (x *Event) ProtoReflect() protoreflect.Message
- func (x *Event) Reset()
- func (x *Event) String() string
- type Event_DeadLetter
- type Event_Exited
- type Event_LinkDown
- type Event_LinkUp
- type Event_Spawned
- type ExitRequest
- func (*ExitRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ExitRequest) GetNode() string
- func (x *ExitRequest) GetReason() string
- func (x *ExitRequest) GetTarget() *Target
- func (*ExitRequest) ProtoMessage()
- func (x *ExitRequest) ProtoReflect() protoreflect.Message
- func (x *ExitRequest) Reset()
- func (x *ExitRequest) String() string
- type ExitResponse
- type Exited
- type GetNodeRequest
- type GetNodeResponse
- type GetProcessRequest
- func (*GetProcessRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetProcessRequest) GetInspect() bool
- func (x *GetProcessRequest) GetInspectTimeout() *durationpb.Duration
- func (x *GetProcessRequest) GetNode() string
- func (x *GetProcessRequest) GetTarget() *Target
- func (*GetProcessRequest) ProtoMessage()
- func (x *GetProcessRequest) ProtoReflect() protoreflect.Message
- func (x *GetProcessRequest) Reset()
- func (x *GetProcessRequest) String() string
- type GetProcessResponse
- func (*GetProcessResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetProcessResponse) GetInspect() map[string]string
- func (x *GetProcessResponse) GetInspectError() string
- func (x *GetProcessResponse) GetProcess() *ProcessInfo
- func (*GetProcessResponse) ProtoMessage()
- func (x *GetProcessResponse) ProtoReflect() protoreflect.Message
- func (x *GetProcessResponse) Reset()
- func (x *GetProcessResponse) String() string
- type GlobalName
- type InspectorClient
- type InspectorServer
- type Inspector_WatchClient
- type Inspector_WatchServer
- type Link
- func (*Link) Descriptor() ([]byte, []int)deprecated
- func (x *Link) GetBytes() uint64
- func (x *Link) GetEstablishedAt() *timestamppb.Timestamp
- func (x *Link) GetLastError() string
- func (x *Link) GetMessages() uint64
- func (x *Link) GetOutbound() bool
- func (x *Link) GetPeer() *NodeID
- func (x *Link) GetQueued() uint32
- func (x *Link) GetQueuedBytes() uint64
- func (x *Link) GetReconnects() uint64
- func (x *Link) GetRetryAt() *timestamppb.Timestamp
- func (x *Link) GetSessions() uint64
- func (x *Link) GetState() LinkState
- func (*Link) ProtoMessage()
- func (x *Link) ProtoReflect() protoreflect.Message
- func (x *Link) Reset()
- func (x *Link) String() string
- type LinkDown
- type LinkState
- type ListNamesRequest
- func (*ListNamesRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ListNamesRequest) GetLimit() uint32
- func (x *ListNamesRequest) GetNode() string
- func (x *ListNamesRequest) GetPrefix() string
- func (*ListNamesRequest) ProtoMessage()
- func (x *ListNamesRequest) ProtoReflect() protoreflect.Message
- func (x *ListNamesRequest) Reset()
- func (x *ListNamesRequest) String() string
- type ListNamesResponse
- func (*ListNamesResponse) Descriptor() ([]byte, []int)deprecated
- func (x *ListNamesResponse) GetNames() []*GlobalName
- func (*ListNamesResponse) ProtoMessage()
- func (x *ListNamesResponse) ProtoReflect() protoreflect.Message
- func (x *ListNamesResponse) Reset()
- func (x *ListNamesResponse) String() string
- type ListProcessesRequest
- func (*ListProcessesRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ListProcessesRequest) GetLabel() string
- func (x *ListProcessesRequest) GetMinMailbox() uint32
- func (x *ListProcessesRequest) GetName() string
- func (x *ListProcessesRequest) GetNode() string
- func (x *ListProcessesRequest) GetState() ProcessState
- func (*ListProcessesRequest) ProtoMessage()
- func (x *ListProcessesRequest) ProtoReflect() protoreflect.Message
- func (x *ListProcessesRequest) Reset()
- func (x *ListProcessesRequest) String() string
- type ListProcessesResponse
- func (*ListProcessesResponse) Descriptor() ([]byte, []int)deprecated
- func (x *ListProcessesResponse) GetProcesses() []*ProcessInfo
- func (*ListProcessesResponse) ProtoMessage()
- func (x *ListProcessesResponse) ProtoReflect() protoreflect.Message
- func (x *ListProcessesResponse) Reset()
- func (x *ListProcessesResponse) String() string
- type LookupNameRequest
- func (*LookupNameRequest) Descriptor() ([]byte, []int)deprecated
- func (x *LookupNameRequest) GetName() string
- func (x *LookupNameRequest) GetNode() string
- func (*LookupNameRequest) ProtoMessage()
- func (x *LookupNameRequest) ProtoReflect() protoreflect.Message
- func (x *LookupNameRequest) Reset()
- func (x *LookupNameRequest) String() string
- type LookupNameResponse
- func (*LookupNameResponse) Descriptor() ([]byte, []int)deprecated
- func (x *LookupNameResponse) GetFound() bool
- func (x *LookupNameResponse) GetPid() *v1.PID
- func (*LookupNameResponse) ProtoMessage()
- func (x *LookupNameResponse) ProtoReflect() protoreflect.Message
- func (x *LookupNameResponse) Reset()
- func (x *LookupNameResponse) String() string
- type Mailbox
- func (*Mailbox) Descriptor() ([]byte, []int)deprecated
- func (x *Mailbox) GetDepth() uint32
- func (x *Mailbox) GetOldestAge() *durationpb.Duration
- func (x *Mailbox) GetPeak() uint32
- func (*Mailbox) ProtoMessage()
- func (x *Mailbox) ProtoReflect() protoreflect.Message
- func (x *Mailbox) Reset()
- func (x *Mailbox) String() string
- type NodeID
- type NodeInfo
- func (*NodeInfo) Descriptor() ([]byte, []int)deprecated
- func (x *NodeInfo) GetAdvertise() string
- func (x *NodeInfo) GetDeadLetters() uint64
- func (x *NodeInfo) GetExited() uint64
- func (x *NodeInfo) GetId() *NodeID
- func (x *NodeInfo) GetLinks() []*Link
- func (x *NodeInfo) GetMetadata() map[string]string
- func (x *NodeInfo) GetProcesses() uint32
- func (x *NodeInfo) GetSpawned() uint64
- func (x *NodeInfo) GetStartedAt() *timestamppb.Timestamp
- func (*NodeInfo) ProtoMessage()
- func (x *NodeInfo) ProtoReflect() protoreflect.Message
- func (x *NodeInfo) Reset()
- func (x *NodeInfo) String() string
- type ProcessInfo
- func (*ProcessInfo) Descriptor() ([]byte, []int)deprecated
- func (x *ProcessInfo) GetCallsInFlight() uint32
- func (x *ProcessInfo) GetGlobals() []string
- func (x *ProcessInfo) GetLabel() string
- func (x *ProcessInfo) GetLastMessage() string
- func (x *ProcessInfo) GetLinks() uint32
- func (x *ProcessInfo) GetLogLevel() int32
- func (x *ProcessInfo) GetMailbox() *Mailbox
- func (x *ProcessInfo) GetMonitors() uint32
- func (x *ProcessInfo) GetName() string
- func (x *ProcessInfo) GetParent() *v1.PID
- func (x *ProcessInfo) GetPid() *v1.PID
- func (x *ProcessInfo) GetReceived() uint64
- func (x *ProcessInfo) GetSent() uint64
- func (x *ProcessInfo) GetStartedAt() *timestamppb.Timestamp
- func (x *ProcessInfo) GetState() ProcessState
- func (x *ProcessInfo) GetTrapExit() bool
- func (x *ProcessInfo) GetType() string
- func (x *ProcessInfo) GetWakeups() uint64
- func (x *ProcessInfo) GetWatchers() uint32
- func (*ProcessInfo) ProtoMessage()
- func (x *ProcessInfo) ProtoReflect() protoreflect.Message
- func (x *ProcessInfo) Reset()
- func (x *ProcessInfo) String() string
- type ProcessState
- func (ProcessState) Descriptor() protoreflect.EnumDescriptor
- func (x ProcessState) Enum() *ProcessState
- func (ProcessState) EnumDescriptor() ([]byte, []int)deprecated
- func (x ProcessState) Number() protoreflect.EnumNumber
- func (x ProcessState) String() string
- func (ProcessState) Type() protoreflect.EnumType
- type SendRequest
- func (*SendRequest) Descriptor() ([]byte, []int)deprecated
- func (x *SendRequest) GetBody() *anypb.Any
- func (x *SendRequest) GetNode() string
- func (x *SendRequest) GetTarget() *Target
- func (*SendRequest) ProtoMessage()
- func (x *SendRequest) ProtoReflect() protoreflect.Message
- func (x *SendRequest) Reset()
- func (x *SendRequest) String() string
- type SendResponse
- type SetLogLevelRequest
- func (*SetLogLevelRequest) Descriptor() ([]byte, []int)deprecated
- func (x *SetLogLevelRequest) GetLevel() int32
- func (x *SetLogLevelRequest) GetNode() string
- func (x *SetLogLevelRequest) GetTarget() *Target
- func (*SetLogLevelRequest) ProtoMessage()
- func (x *SetLogLevelRequest) ProtoReflect() protoreflect.Message
- func (x *SetLogLevelRequest) Reset()
- func (x *SetLogLevelRequest) String() string
- type SetLogLevelResponse
- type Target
- func (*Target) Descriptor() ([]byte, []int)deprecated
- func (x *Target) GetKind() isTarget_Kind
- func (x *Target) GetName() string
- func (x *Target) GetPid() *v1.PID
- func (*Target) ProtoMessage()
- func (x *Target) ProtoReflect() protoreflect.Message
- func (x *Target) Reset()
- func (x *Target) String() string
- type Target_Name
- type Target_Pid
- type UnimplementedInspectorServer
- func (UnimplementedInspectorServer) Call(context.Context, *CallRequest) (*CallResponse, error)
- func (UnimplementedInspectorServer) Exit(context.Context, *ExitRequest) (*ExitResponse, error)
- func (UnimplementedInspectorServer) GetNode(context.Context, *GetNodeRequest) (*GetNodeResponse, error)
- func (UnimplementedInspectorServer) GetProcess(context.Context, *GetProcessRequest) (*GetProcessResponse, error)
- func (UnimplementedInspectorServer) ListNames(context.Context, *ListNamesRequest) (*ListNamesResponse, error)
- func (UnimplementedInspectorServer) ListProcesses(context.Context, *ListProcessesRequest) (*ListProcessesResponse, error)
- func (UnimplementedInspectorServer) LookupName(context.Context, *LookupNameRequest) (*LookupNameResponse, error)
- func (UnimplementedInspectorServer) Send(context.Context, *SendRequest) (*SendResponse, error)
- func (UnimplementedInspectorServer) SetLogLevel(context.Context, *SetLogLevelRequest) (*SetLogLevelResponse, error)
- func (UnimplementedInspectorServer) Watch(*WatchRequest, grpc.ServerStreamingServer[WatchResponse]) error
- type UnsafeInspectorServer
- type WatchRequest
- func (*WatchRequest) Descriptor() ([]byte, []int)deprecated
- func (x *WatchRequest) GetBuffer() uint32
- func (x *WatchRequest) GetNode() string
- func (*WatchRequest) ProtoMessage()
- func (x *WatchRequest) ProtoReflect() protoreflect.Message
- func (x *WatchRequest) Reset()
- func (x *WatchRequest) String() string
- type WatchResponse
Constants ¶
const ( Inspector_GetNode_FullMethodName = "/grpcproc.inspect.v1.Inspector/GetNode" Inspector_ListProcesses_FullMethodName = "/grpcproc.inspect.v1.Inspector/ListProcesses" Inspector_GetProcess_FullMethodName = "/grpcproc.inspect.v1.Inspector/GetProcess" Inspector_SetLogLevel_FullMethodName = "/grpcproc.inspect.v1.Inspector/SetLogLevel" Inspector_Send_FullMethodName = "/grpcproc.inspect.v1.Inspector/Send" Inspector_Call_FullMethodName = "/grpcproc.inspect.v1.Inspector/Call" Inspector_Exit_FullMethodName = "/grpcproc.inspect.v1.Inspector/Exit" Inspector_Watch_FullMethodName = "/grpcproc.inspect.v1.Inspector/Watch" Inspector_LookupName_FullMethodName = "/grpcproc.inspect.v1.Inspector/LookupName" Inspector_ListNames_FullMethodName = "/grpcproc.inspect.v1.Inspector/ListNames" )
Variables ¶
var ( LinkState_name = map[int32]string{ 0: "LINK_STATE_UNSPECIFIED", 1: "LINK_STATE_CONNECTING", 2: "LINK_STATE_UP", 3: "LINK_STATE_DOWN", } LinkState_value = map[string]int32{ "LINK_STATE_UNSPECIFIED": 0, "LINK_STATE_CONNECTING": 1, "LINK_STATE_UP": 2, "LINK_STATE_DOWN": 3, } )
Enum value maps for LinkState.
var ( ProcessState_name = map[int32]string{ 0: "PROCESS_STATE_UNSPECIFIED", 1: "PROCESS_STATE_IDLE", 2: "PROCESS_STATE_RUNNING", 3: "PROCESS_STATE_WAITING_REPLY", 4: "PROCESS_STATE_EXITING", } ProcessState_value = map[string]int32{ "PROCESS_STATE_UNSPECIFIED": 0, "PROCESS_STATE_IDLE": 1, "PROCESS_STATE_RUNNING": 2, "PROCESS_STATE_WAITING_REPLY": 3, "PROCESS_STATE_EXITING": 4, } )
Enum value maps for ProcessState.
var File_grpcproc_inspect_v1_inspect_proto protoreflect.FileDescriptor
var Inspector_ServiceDesc = grpc.ServiceDesc{ ServiceName: "grpcproc.inspect.v1.Inspector", HandlerType: (*InspectorServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "GetNode", Handler: _Inspector_GetNode_Handler, }, { MethodName: "ListProcesses", Handler: _Inspector_ListProcesses_Handler, }, { MethodName: "GetProcess", Handler: _Inspector_GetProcess_Handler, }, { MethodName: "SetLogLevel", Handler: _Inspector_SetLogLevel_Handler, }, { MethodName: "Send", Handler: _Inspector_Send_Handler, }, { MethodName: "Call", Handler: _Inspector_Call_Handler, }, { MethodName: "Exit", Handler: _Inspector_Exit_Handler, }, { MethodName: "LookupName", Handler: _Inspector_LookupName_Handler, }, { MethodName: "ListNames", Handler: _Inspector_ListNames_Handler, }, }, Streams: []grpc.StreamDesc{ { StreamName: "Watch", Handler: _Inspector_Watch_Handler, ServerStreams: true, }, }, Metadata: "grpcproc/inspect/v1/inspect.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 CallRequest ¶ added in v0.1.0
type CallRequest struct {
Node string `protobuf:"bytes,1,opt,name=node,proto3" json:"node,omitempty"`
Target *Target `protobuf:"bytes,2,opt,name=target,proto3" json:"target,omitempty"`
Body *anypb.Any `protobuf:"bytes,3,opt,name=body,proto3" json:"body,omitempty"`
// contains filtered or unexported fields
}
func (*CallRequest) Descriptor
deprecated
added in
v0.1.0
func (*CallRequest) Descriptor() ([]byte, []int)
Deprecated: Use CallRequest.ProtoReflect.Descriptor instead.
func (*CallRequest) GetBody ¶ added in v0.1.0
func (x *CallRequest) GetBody() *anypb.Any
func (*CallRequest) GetNode ¶ added in v0.1.0
func (x *CallRequest) GetNode() string
func (*CallRequest) GetTarget ¶ added in v0.1.0
func (x *CallRequest) GetTarget() *Target
func (*CallRequest) ProtoMessage ¶ added in v0.1.0
func (*CallRequest) ProtoMessage()
func (*CallRequest) ProtoReflect ¶ added in v0.1.0
func (x *CallRequest) ProtoReflect() protoreflect.Message
func (*CallRequest) Reset ¶ added in v0.1.0
func (x *CallRequest) Reset()
func (*CallRequest) String ¶ added in v0.1.0
func (x *CallRequest) String() string
type CallResponse ¶ added in v0.1.0
type CallResponse struct {
Body *anypb.Any `protobuf:"bytes,1,opt,name=body,proto3" json:"body,omitempty"`
// contains filtered or unexported fields
}
func (*CallResponse) Descriptor
deprecated
added in
v0.1.0
func (*CallResponse) Descriptor() ([]byte, []int)
Deprecated: Use CallResponse.ProtoReflect.Descriptor instead.
func (*CallResponse) GetBody ¶ added in v0.1.0
func (x *CallResponse) GetBody() *anypb.Any
func (*CallResponse) ProtoMessage ¶ added in v0.1.0
func (*CallResponse) ProtoMessage()
func (*CallResponse) ProtoReflect ¶ added in v0.1.0
func (x *CallResponse) ProtoReflect() protoreflect.Message
func (*CallResponse) Reset ¶ added in v0.1.0
func (x *CallResponse) Reset()
func (*CallResponse) String ¶ added in v0.1.0
func (x *CallResponse) String() string
type DeadLetter ¶
type DeadLetter struct {
From *v1.PID `protobuf:"bytes,1,opt,name=from,proto3" json:"from,omitempty"`
To *v1.PID `protobuf:"bytes,2,opt,name=to,proto3" json:"to,omitempty"`
// Proto full name of the message.
Type string `protobuf:"bytes,3,opt,name=type,proto3" json:"type,omitempty"`
Reason string `protobuf:"bytes,4,opt,name=reason,proto3" json:"reason,omitempty"`
// contains filtered or unexported fields
}
func (*DeadLetter) Descriptor
deprecated
func (*DeadLetter) Descriptor() ([]byte, []int)
Deprecated: Use DeadLetter.ProtoReflect.Descriptor instead.
func (*DeadLetter) GetFrom ¶
func (x *DeadLetter) GetFrom() *v1.PID
func (*DeadLetter) GetReason ¶
func (x *DeadLetter) GetReason() string
func (*DeadLetter) GetTo ¶
func (x *DeadLetter) GetTo() *v1.PID
func (*DeadLetter) GetType ¶
func (x *DeadLetter) GetType() string
func (*DeadLetter) ProtoMessage ¶
func (*DeadLetter) ProtoMessage()
func (*DeadLetter) ProtoReflect ¶
func (x *DeadLetter) ProtoReflect() protoreflect.Message
func (*DeadLetter) Reset ¶
func (x *DeadLetter) Reset()
func (*DeadLetter) String ¶
func (x *DeadLetter) String() string
type Event ¶
type Event struct {
Time *timestamppb.Timestamp `protobuf:"bytes,1,opt,name=time,proto3" json:"time,omitempty"`
// Events this watcher lost since the previous one.
Missed uint64 `protobuf:"varint,2,opt,name=missed,proto3" json:"missed,omitempty"`
// Types that are valid to be assigned to Kind:
//
// *Event_Spawned
// *Event_Exited
// *Event_LinkUp
// *Event_LinkDown
// *Event_DeadLetter
Kind isEvent_Kind `protobuf_oneof:"kind"`
// contains filtered or unexported fields
}
func (*Event) Descriptor
deprecated
func (*Event) GetDeadLetter ¶
func (x *Event) GetDeadLetter() *DeadLetter
func (*Event) GetLinkDown ¶
func (*Event) GetSpawned ¶
func (x *Event) GetSpawned() *ProcessInfo
func (*Event) GetTime ¶
func (x *Event) GetTime() *timestamppb.Timestamp
func (*Event) ProtoMessage ¶
func (*Event) ProtoMessage()
func (*Event) ProtoReflect ¶
func (x *Event) ProtoReflect() protoreflect.Message
type Event_DeadLetter ¶
type Event_DeadLetter struct {
DeadLetter *DeadLetter `protobuf:"bytes,7,opt,name=dead_letter,json=deadLetter,proto3,oneof"`
}
type Event_Exited ¶
type Event_Exited struct {
Exited *Exited `protobuf:"bytes,4,opt,name=exited,proto3,oneof"`
}
type Event_LinkDown ¶
type Event_LinkDown struct {
LinkDown *LinkDown `protobuf:"bytes,6,opt,name=link_down,json=linkDown,proto3,oneof"`
}
type Event_LinkUp ¶
type Event_LinkUp struct {
LinkUp *NodeID `protobuf:"bytes,5,opt,name=link_up,json=linkUp,proto3,oneof"`
}
type Event_Spawned ¶
type Event_Spawned struct {
Spawned *ProcessInfo `protobuf:"bytes,3,opt,name=spawned,proto3,oneof"`
}
type ExitRequest ¶
type ExitRequest struct {
Node string `protobuf:"bytes,1,opt,name=node,proto3" json:"node,omitempty"`
Target *Target `protobuf:"bytes,2,opt,name=target,proto3" json:"target,omitempty"`
Reason string `protobuf:"bytes,3,opt,name=reason,proto3" json:"reason,omitempty"`
// contains filtered or unexported fields
}
func (*ExitRequest) Descriptor
deprecated
func (*ExitRequest) Descriptor() ([]byte, []int)
Deprecated: Use ExitRequest.ProtoReflect.Descriptor instead.
func (*ExitRequest) GetNode ¶
func (x *ExitRequest) GetNode() string
func (*ExitRequest) GetReason ¶
func (x *ExitRequest) GetReason() string
func (*ExitRequest) GetTarget ¶
func (x *ExitRequest) GetTarget() *Target
func (*ExitRequest) ProtoMessage ¶
func (*ExitRequest) ProtoMessage()
func (*ExitRequest) ProtoReflect ¶
func (x *ExitRequest) ProtoReflect() protoreflect.Message
func (*ExitRequest) Reset ¶
func (x *ExitRequest) Reset()
func (*ExitRequest) String ¶
func (x *ExitRequest) String() string
type ExitResponse ¶
type ExitResponse struct {
// contains filtered or unexported fields
}
func (*ExitResponse) Descriptor
deprecated
func (*ExitResponse) Descriptor() ([]byte, []int)
Deprecated: Use ExitResponse.ProtoReflect.Descriptor instead.
func (*ExitResponse) ProtoMessage ¶
func (*ExitResponse) ProtoMessage()
func (*ExitResponse) ProtoReflect ¶
func (x *ExitResponse) ProtoReflect() protoreflect.Message
func (*ExitResponse) Reset ¶
func (x *ExitResponse) Reset()
func (*ExitResponse) String ¶
func (x *ExitResponse) String() string
type Exited ¶
type Exited struct {
Process *ProcessInfo `protobuf:"bytes,1,opt,name=process,proto3" json:"process,omitempty"`
Reason string `protobuf:"bytes,2,opt,name=reason,proto3" json:"reason,omitempty"`
// contains filtered or unexported fields
}
func (*Exited) Descriptor
deprecated
func (*Exited) GetProcess ¶
func (x *Exited) GetProcess() *ProcessInfo
func (*Exited) ProtoMessage ¶
func (*Exited) ProtoMessage()
func (*Exited) ProtoReflect ¶
func (x *Exited) ProtoReflect() protoreflect.Message
type GetNodeRequest ¶
type GetNodeRequest struct {
Node string `protobuf:"bytes,1,opt,name=node,proto3" json:"node,omitempty"`
// contains filtered or unexported fields
}
func (*GetNodeRequest) Descriptor
deprecated
func (*GetNodeRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetNodeRequest.ProtoReflect.Descriptor instead.
func (*GetNodeRequest) GetNode ¶
func (x *GetNodeRequest) GetNode() string
func (*GetNodeRequest) ProtoMessage ¶
func (*GetNodeRequest) ProtoMessage()
func (*GetNodeRequest) ProtoReflect ¶
func (x *GetNodeRequest) ProtoReflect() protoreflect.Message
func (*GetNodeRequest) Reset ¶
func (x *GetNodeRequest) Reset()
func (*GetNodeRequest) String ¶
func (x *GetNodeRequest) String() string
type GetNodeResponse ¶
type GetNodeResponse struct {
Node *NodeInfo `protobuf:"bytes,1,opt,name=node,proto3" json:"node,omitempty"`
// contains filtered or unexported fields
}
func (*GetNodeResponse) Descriptor
deprecated
func (*GetNodeResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetNodeResponse.ProtoReflect.Descriptor instead.
func (*GetNodeResponse) GetNode ¶
func (x *GetNodeResponse) GetNode() *NodeInfo
func (*GetNodeResponse) ProtoMessage ¶
func (*GetNodeResponse) ProtoMessage()
func (*GetNodeResponse) ProtoReflect ¶
func (x *GetNodeResponse) ProtoReflect() protoreflect.Message
func (*GetNodeResponse) Reset ¶
func (x *GetNodeResponse) Reset()
func (*GetNodeResponse) String ¶
func (x *GetNodeResponse) String() string
type GetProcessRequest ¶
type GetProcessRequest struct {
Node string `protobuf:"bytes,1,opt,name=node,proto3" json:"node,omitempty"`
Target *Target `protobuf:"bytes,2,opt,name=target,proto3" json:"target,omitempty"`
// Ask the process what it believes (WithInspect).
Inspect bool `protobuf:"varint,3,opt,name=inspect,proto3" json:"inspect,omitempty"`
// How long to wait for a busy process to answer. Default 1s.
InspectTimeout *durationpb.Duration `protobuf:"bytes,4,opt,name=inspect_timeout,json=inspectTimeout,proto3" json:"inspect_timeout,omitempty"`
// contains filtered or unexported fields
}
func (*GetProcessRequest) Descriptor
deprecated
func (*GetProcessRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetProcessRequest.ProtoReflect.Descriptor instead.
func (*GetProcessRequest) GetInspect ¶
func (x *GetProcessRequest) GetInspect() bool
func (*GetProcessRequest) GetInspectTimeout ¶
func (x *GetProcessRequest) GetInspectTimeout() *durationpb.Duration
func (*GetProcessRequest) GetNode ¶
func (x *GetProcessRequest) GetNode() string
func (*GetProcessRequest) GetTarget ¶
func (x *GetProcessRequest) GetTarget() *Target
func (*GetProcessRequest) ProtoMessage ¶
func (*GetProcessRequest) ProtoMessage()
func (*GetProcessRequest) ProtoReflect ¶
func (x *GetProcessRequest) ProtoReflect() protoreflect.Message
func (*GetProcessRequest) Reset ¶
func (x *GetProcessRequest) Reset()
func (*GetProcessRequest) String ¶
func (x *GetProcessRequest) String() string
type GetProcessResponse ¶
type GetProcessResponse struct {
Process *ProcessInfo `protobuf:"bytes,1,opt,name=process,proto3" json:"process,omitempty"`
Inspect map[string]string `` /* 141-byte string literal not displayed */
// Why inspect is empty when it was asked for: the process was busy, or
// exited in the meantime.
InspectError string `protobuf:"bytes,3,opt,name=inspect_error,json=inspectError,proto3" json:"inspect_error,omitempty"`
// contains filtered or unexported fields
}
func (*GetProcessResponse) Descriptor
deprecated
func (*GetProcessResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetProcessResponse.ProtoReflect.Descriptor instead.
func (*GetProcessResponse) GetInspect ¶
func (x *GetProcessResponse) GetInspect() map[string]string
func (*GetProcessResponse) GetInspectError ¶
func (x *GetProcessResponse) GetInspectError() string
func (*GetProcessResponse) GetProcess ¶
func (x *GetProcessResponse) GetProcess() *ProcessInfo
func (*GetProcessResponse) ProtoMessage ¶
func (*GetProcessResponse) ProtoMessage()
func (*GetProcessResponse) ProtoReflect ¶
func (x *GetProcessResponse) ProtoReflect() protoreflect.Message
func (*GetProcessResponse) Reset ¶
func (x *GetProcessResponse) Reset()
func (*GetProcessResponse) String ¶
func (x *GetProcessResponse) String() string
type GlobalName ¶ added in v0.4.0
type GlobalName struct {
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
Pid *v1.PID `protobuf:"bytes,2,opt,name=pid,proto3" json:"pid,omitempty"`
// contains filtered or unexported fields
}
func (*GlobalName) Descriptor
deprecated
added in
v0.4.0
func (*GlobalName) Descriptor() ([]byte, []int)
Deprecated: Use GlobalName.ProtoReflect.Descriptor instead.
func (*GlobalName) GetName ¶ added in v0.4.0
func (x *GlobalName) GetName() string
func (*GlobalName) GetPid ¶ added in v0.4.0
func (x *GlobalName) GetPid() *v1.PID
func (*GlobalName) ProtoMessage ¶ added in v0.4.0
func (*GlobalName) ProtoMessage()
func (*GlobalName) ProtoReflect ¶ added in v0.4.0
func (x *GlobalName) ProtoReflect() protoreflect.Message
func (*GlobalName) Reset ¶ added in v0.4.0
func (x *GlobalName) Reset()
func (*GlobalName) String ¶ added in v0.4.0
func (x *GlobalName) String() string
type InspectorClient ¶
type InspectorClient interface {
GetNode(ctx context.Context, in *GetNodeRequest, opts ...grpc.CallOption) (*GetNodeResponse, error)
ListProcesses(ctx context.Context, in *ListProcessesRequest, opts ...grpc.CallOption) (*ListProcessesResponse, error)
// GetProcess returns a snapshot and, if asked, what the process publishes
// about itself (WithInspect), produced on its own goroutine.
GetProcess(ctx context.Context, in *GetProcessRequest, opts ...grpc.CallOption) (*GetProcessResponse, error)
SetLogLevel(ctx context.Context, in *SetLogLevelRequest, opts ...grpc.CallOption) (*SetLogLevelResponse, error)
Send(ctx context.Context, in *SendRequest, opts ...grpc.CallOption) (*SendResponse, error)
// Call calls a process and returns its answer, as Node.CallTo does from
// the node: the request's deadline is the call's. An answer that is an
// error is Unknown, with the error's text.
Call(ctx context.Context, in *CallRequest, opts ...grpc.CallOption) (*CallResponse, error)
Exit(ctx context.Context, in *ExitRequest, opts ...grpc.CallOption) (*ExitResponse, error)
// Watch streams events until the client cancels.
Watch(ctx context.Context, in *WatchRequest, opts ...grpc.CallOption) (grpc.ServerStreamingClient[WatchResponse], error)
// LookupName says who holds a global name, as the node's copy of the
// names has it. FailedPrecondition for a node without Config.Names.
LookupName(ctx context.Context, in *LookupNameRequest, opts ...grpc.CallOption) (*LookupNameResponse, error)
// ListNames lists global names by prefix. FailedPrecondition for a node
// without Config.Names, Unimplemented for one whose Names cannot list.
ListNames(ctx context.Context, in *ListNamesRequest, opts ...grpc.CallOption) (*ListNamesResponse, 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.
Inspector is registered by the application next to grpcproc.v1.Node.
Every request names the node it is about. An empty node, or this node's own name, is answered here; any other name is forwarded to that node's Inspector when the server was built to reach other nodes, so one endpoint can inspect the whole cluster.
func NewInspectorClient ¶
func NewInspectorClient(cc grpc.ClientConnInterface) InspectorClient
type InspectorServer ¶
type InspectorServer interface {
GetNode(context.Context, *GetNodeRequest) (*GetNodeResponse, error)
ListProcesses(context.Context, *ListProcessesRequest) (*ListProcessesResponse, error)
// GetProcess returns a snapshot and, if asked, what the process publishes
// about itself (WithInspect), produced on its own goroutine.
GetProcess(context.Context, *GetProcessRequest) (*GetProcessResponse, error)
SetLogLevel(context.Context, *SetLogLevelRequest) (*SetLogLevelResponse, error)
Send(context.Context, *SendRequest) (*SendResponse, error)
// Call calls a process and returns its answer, as Node.CallTo does from
// the node: the request's deadline is the call's. An answer that is an
// error is Unknown, with the error's text.
Call(context.Context, *CallRequest) (*CallResponse, error)
Exit(context.Context, *ExitRequest) (*ExitResponse, error)
// Watch streams events until the client cancels.
Watch(*WatchRequest, grpc.ServerStreamingServer[WatchResponse]) error
// LookupName says who holds a global name, as the node's copy of the
// names has it. FailedPrecondition for a node without Config.Names.
LookupName(context.Context, *LookupNameRequest) (*LookupNameResponse, error)
// ListNames lists global names by prefix. FailedPrecondition for a node
// without Config.Names, Unimplemented for one whose Names cannot list.
ListNames(context.Context, *ListNamesRequest) (*ListNamesResponse, error)
// contains filtered or unexported methods
}
InspectorServer is the server API for Inspector service. All implementations must embed UnimplementedInspectorServer for forward compatibility.
Inspector is registered by the application next to grpcproc.v1.Node.
Every request names the node it is about. An empty node, or this node's own name, is answered here; any other name is forwarded to that node's Inspector when the server was built to reach other nodes, so one endpoint can inspect the whole cluster.
type Inspector_WatchClient ¶
type Inspector_WatchClient = grpc.ServerStreamingClient[WatchResponse]
This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name.
type Inspector_WatchServer ¶
type Inspector_WatchServer = grpc.ServerStreamingServer[WatchResponse]
This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name.
type Link ¶
type Link struct {
Peer *NodeID `protobuf:"bytes,1,opt,name=peer,proto3" json:"peer,omitempty"`
Outbound bool `protobuf:"varint,2,opt,name=outbound,proto3" json:"outbound,omitempty"`
State LinkState `protobuf:"varint,3,opt,name=state,proto3,enum=grpcproc.inspect.v1.LinkState" json:"state,omitempty"`
EstablishedAt *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=established_at,json=establishedAt,proto3" json:"established_at,omitempty"`
Reconnects uint64 `protobuf:"varint,5,opt,name=reconnects,proto3" json:"reconnects,omitempty"`
Messages uint64 `protobuf:"varint,6,opt,name=messages,proto3" json:"messages,omitempty"`
Bytes uint64 `protobuf:"varint,7,opt,name=bytes,proto3" json:"bytes,omitempty"`
LastError string `protobuf:"bytes,8,opt,name=last_error,json=lastError,proto3" json:"last_error,omitempty"`
// Set on an outbound link that is down because dials to the peer failed:
// sends to it fail at once until then (Config.DialBackoff).
RetryAt *timestamppb.Timestamp `protobuf:"bytes,9,opt,name=retry_at,json=retryAt,proto3" json:"retry_at,omitempty"`
// Outbound: envelopes waiting to be written.
Queued uint32 `protobuf:"varint,10,opt,name=queued,proto3" json:"queued,omitempty"`
// Outbound: the bytes of their message bodies.
QueuedBytes uint64 `protobuf:"varint,11,opt,name=queued_bytes,json=queuedBytes,proto3" json:"queued_bytes,omitempty"`
// How many sessions with the peer have ended: links lost, or the peer
// reporting it ended one.
Sessions uint64 `protobuf:"varint,12,opt,name=sessions,proto3" json:"sessions,omitempty"`
// contains filtered or unexported fields
}
func (*Link) Descriptor
deprecated
func (*Link) GetEstablishedAt ¶
func (x *Link) GetEstablishedAt() *timestamppb.Timestamp
func (*Link) GetLastError ¶
func (*Link) GetMessages ¶
func (*Link) GetOutbound ¶
func (*Link) GetQueuedBytes ¶ added in v0.2.0
func (*Link) GetReconnects ¶
func (*Link) GetRetryAt ¶ added in v0.0.3
func (x *Link) GetRetryAt() *timestamppb.Timestamp
func (*Link) GetSessions ¶ added in v0.6.0
func (*Link) ProtoMessage ¶
func (*Link) ProtoMessage()
func (*Link) ProtoReflect ¶
func (x *Link) ProtoReflect() protoreflect.Message
type LinkDown ¶
type LinkDown struct {
Peer *NodeID `protobuf:"bytes,1,opt,name=peer,proto3" json:"peer,omitempty"`
Error string `protobuf:"bytes,2,opt,name=error,proto3" json:"error,omitempty"`
// contains filtered or unexported fields
}
func (*LinkDown) Descriptor
deprecated
func (*LinkDown) ProtoMessage ¶
func (*LinkDown) ProtoMessage()
func (*LinkDown) ProtoReflect ¶
func (x *LinkDown) ProtoReflect() protoreflect.Message
type LinkState ¶
type LinkState int32
func (LinkState) Descriptor ¶
func (LinkState) Descriptor() protoreflect.EnumDescriptor
func (LinkState) EnumDescriptor
deprecated
func (LinkState) Number ¶
func (x LinkState) Number() protoreflect.EnumNumber
func (LinkState) Type ¶
func (LinkState) Type() protoreflect.EnumType
type ListNamesRequest ¶ added in v0.4.0
type ListNamesRequest struct {
Node string `protobuf:"bytes,1,opt,name=node,proto3" json:"node,omitempty"`
Prefix string `protobuf:"bytes,2,opt,name=prefix,proto3" json:"prefix,omitempty"`
// At most this many, ordered by name; 0 is 1000.
Limit uint32 `protobuf:"varint,3,opt,name=limit,proto3" json:"limit,omitempty"`
// contains filtered or unexported fields
}
func (*ListNamesRequest) Descriptor
deprecated
added in
v0.4.0
func (*ListNamesRequest) Descriptor() ([]byte, []int)
Deprecated: Use ListNamesRequest.ProtoReflect.Descriptor instead.
func (*ListNamesRequest) GetLimit ¶ added in v0.4.0
func (x *ListNamesRequest) GetLimit() uint32
func (*ListNamesRequest) GetNode ¶ added in v0.4.0
func (x *ListNamesRequest) GetNode() string
func (*ListNamesRequest) GetPrefix ¶ added in v0.4.0
func (x *ListNamesRequest) GetPrefix() string
func (*ListNamesRequest) ProtoMessage ¶ added in v0.4.0
func (*ListNamesRequest) ProtoMessage()
func (*ListNamesRequest) ProtoReflect ¶ added in v0.4.0
func (x *ListNamesRequest) ProtoReflect() protoreflect.Message
func (*ListNamesRequest) Reset ¶ added in v0.4.0
func (x *ListNamesRequest) Reset()
func (*ListNamesRequest) String ¶ added in v0.4.0
func (x *ListNamesRequest) String() string
type ListNamesResponse ¶ added in v0.4.0
type ListNamesResponse struct {
Names []*GlobalName `protobuf:"bytes,1,rep,name=names,proto3" json:"names,omitempty"`
// contains filtered or unexported fields
}
func (*ListNamesResponse) Descriptor
deprecated
added in
v0.4.0
func (*ListNamesResponse) Descriptor() ([]byte, []int)
Deprecated: Use ListNamesResponse.ProtoReflect.Descriptor instead.
func (*ListNamesResponse) GetNames ¶ added in v0.4.0
func (x *ListNamesResponse) GetNames() []*GlobalName
func (*ListNamesResponse) ProtoMessage ¶ added in v0.4.0
func (*ListNamesResponse) ProtoMessage()
func (*ListNamesResponse) ProtoReflect ¶ added in v0.4.0
func (x *ListNamesResponse) ProtoReflect() protoreflect.Message
func (*ListNamesResponse) Reset ¶ added in v0.4.0
func (x *ListNamesResponse) Reset()
func (*ListNamesResponse) String ¶ added in v0.4.0
func (x *ListNamesResponse) String() string
type ListProcessesRequest ¶
type ListProcessesRequest struct {
Node string `protobuf:"bytes,1,opt,name=node,proto3" json:"node,omitempty"`
// Substring of the process's name; a process with none matches only an
// empty filter.
Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
// Exact label.
Label string `protobuf:"bytes,3,opt,name=label,proto3" json:"label,omitempty"`
State ProcessState `protobuf:"varint,4,opt,name=state,proto3,enum=grpcproc.inspect.v1.ProcessState" json:"state,omitempty"`
// Only processes whose mailbox holds at least this many messages.
MinMailbox uint32 `protobuf:"varint,5,opt,name=min_mailbox,json=minMailbox,proto3" json:"min_mailbox,omitempty"`
// contains filtered or unexported fields
}
ListProcessesRequest filters are ANDed; empty fields match everything.
func (*ListProcessesRequest) Descriptor
deprecated
func (*ListProcessesRequest) Descriptor() ([]byte, []int)
Deprecated: Use ListProcessesRequest.ProtoReflect.Descriptor instead.
func (*ListProcessesRequest) GetLabel ¶
func (x *ListProcessesRequest) GetLabel() string
func (*ListProcessesRequest) GetMinMailbox ¶
func (x *ListProcessesRequest) GetMinMailbox() uint32
func (*ListProcessesRequest) GetName ¶
func (x *ListProcessesRequest) GetName() string
func (*ListProcessesRequest) GetNode ¶
func (x *ListProcessesRequest) GetNode() string
func (*ListProcessesRequest) GetState ¶
func (x *ListProcessesRequest) GetState() ProcessState
func (*ListProcessesRequest) ProtoMessage ¶
func (*ListProcessesRequest) ProtoMessage()
func (*ListProcessesRequest) ProtoReflect ¶
func (x *ListProcessesRequest) ProtoReflect() protoreflect.Message
func (*ListProcessesRequest) Reset ¶
func (x *ListProcessesRequest) Reset()
func (*ListProcessesRequest) String ¶
func (x *ListProcessesRequest) String() string
type ListProcessesResponse ¶
type ListProcessesResponse struct {
Processes []*ProcessInfo `protobuf:"bytes,1,rep,name=processes,proto3" json:"processes,omitempty"`
// contains filtered or unexported fields
}
func (*ListProcessesResponse) Descriptor
deprecated
func (*ListProcessesResponse) Descriptor() ([]byte, []int)
Deprecated: Use ListProcessesResponse.ProtoReflect.Descriptor instead.
func (*ListProcessesResponse) GetProcesses ¶
func (x *ListProcessesResponse) GetProcesses() []*ProcessInfo
func (*ListProcessesResponse) ProtoMessage ¶
func (*ListProcessesResponse) ProtoMessage()
func (*ListProcessesResponse) ProtoReflect ¶
func (x *ListProcessesResponse) ProtoReflect() protoreflect.Message
func (*ListProcessesResponse) Reset ¶
func (x *ListProcessesResponse) Reset()
func (*ListProcessesResponse) String ¶
func (x *ListProcessesResponse) String() string
type LookupNameRequest ¶ added in v0.4.0
type LookupNameRequest struct {
Node string `protobuf:"bytes,1,opt,name=node,proto3" json:"node,omitempty"`
Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
// contains filtered or unexported fields
}
func (*LookupNameRequest) Descriptor
deprecated
added in
v0.4.0
func (*LookupNameRequest) Descriptor() ([]byte, []int)
Deprecated: Use LookupNameRequest.ProtoReflect.Descriptor instead.
func (*LookupNameRequest) GetName ¶ added in v0.4.0
func (x *LookupNameRequest) GetName() string
func (*LookupNameRequest) GetNode ¶ added in v0.4.0
func (x *LookupNameRequest) GetNode() string
func (*LookupNameRequest) ProtoMessage ¶ added in v0.4.0
func (*LookupNameRequest) ProtoMessage()
func (*LookupNameRequest) ProtoReflect ¶ added in v0.4.0
func (x *LookupNameRequest) ProtoReflect() protoreflect.Message
func (*LookupNameRequest) Reset ¶ added in v0.4.0
func (x *LookupNameRequest) Reset()
func (*LookupNameRequest) String ¶ added in v0.4.0
func (x *LookupNameRequest) String() string
type LookupNameResponse ¶ added in v0.4.0
type LookupNameResponse struct {
Found bool `protobuf:"varint,1,opt,name=found,proto3" json:"found,omitempty"`
Pid *v1.PID `protobuf:"bytes,2,opt,name=pid,proto3" json:"pid,omitempty"`
// contains filtered or unexported fields
}
func (*LookupNameResponse) Descriptor
deprecated
added in
v0.4.0
func (*LookupNameResponse) Descriptor() ([]byte, []int)
Deprecated: Use LookupNameResponse.ProtoReflect.Descriptor instead.
func (*LookupNameResponse) GetFound ¶ added in v0.4.0
func (x *LookupNameResponse) GetFound() bool
func (*LookupNameResponse) GetPid ¶ added in v0.4.0
func (x *LookupNameResponse) GetPid() *v1.PID
func (*LookupNameResponse) ProtoMessage ¶ added in v0.4.0
func (*LookupNameResponse) ProtoMessage()
func (*LookupNameResponse) ProtoReflect ¶ added in v0.4.0
func (x *LookupNameResponse) ProtoReflect() protoreflect.Message
func (*LookupNameResponse) Reset ¶ added in v0.4.0
func (x *LookupNameResponse) Reset()
func (*LookupNameResponse) String ¶ added in v0.4.0
func (x *LookupNameResponse) String() string
type Mailbox ¶
type Mailbox struct {
Depth uint32 `protobuf:"varint,1,opt,name=depth,proto3" json:"depth,omitempty"`
Peak uint32 `protobuf:"varint,2,opt,name=peak,proto3" json:"peak,omitempty"`
OldestAge *durationpb.Duration `protobuf:"bytes,3,opt,name=oldest_age,json=oldestAge,proto3" json:"oldest_age,omitempty"`
// contains filtered or unexported fields
}
func (*Mailbox) Descriptor
deprecated
func (*Mailbox) GetOldestAge ¶
func (x *Mailbox) GetOldestAge() *durationpb.Duration
func (*Mailbox) ProtoMessage ¶
func (*Mailbox) ProtoMessage()
func (*Mailbox) ProtoReflect ¶
func (x *Mailbox) ProtoReflect() protoreflect.Message
type NodeID ¶
type NodeID struct {
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
Incarnation uint64 `protobuf:"varint,2,opt,name=incarnation,proto3" json:"incarnation,omitempty"`
// contains filtered or unexported fields
}
func (*NodeID) Descriptor
deprecated
func (*NodeID) GetIncarnation ¶
func (*NodeID) ProtoMessage ¶
func (*NodeID) ProtoMessage()
func (*NodeID) ProtoReflect ¶
func (x *NodeID) ProtoReflect() protoreflect.Message
type NodeInfo ¶
type NodeInfo struct {
Id *NodeID `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
Advertise string `protobuf:"bytes,2,opt,name=advertise,proto3" json:"advertise,omitempty"`
StartedAt *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=started_at,json=startedAt,proto3" json:"started_at,omitempty"`
Processes uint32 `protobuf:"varint,4,opt,name=processes,proto3" json:"processes,omitempty"`
Spawned uint64 `protobuf:"varint,5,opt,name=spawned,proto3" json:"spawned,omitempty"`
Exited uint64 `protobuf:"varint,6,opt,name=exited,proto3" json:"exited,omitempty"`
DeadLetters uint64 `protobuf:"varint,7,opt,name=dead_letters,json=deadLetters,proto3" json:"dead_letters,omitempty"`
Links []*Link `protobuf:"bytes,8,rep,name=links,proto3" json:"links,omitempty"`
// The node's Config.Metadata: its version, its zone.
Metadata map[string]string `` /* 143-byte string literal not displayed */
// contains filtered or unexported fields
}
func (*NodeInfo) Descriptor
deprecated
func (*NodeInfo) GetAdvertise ¶
func (*NodeInfo) GetDeadLetters ¶
func (*NodeInfo) GetMetadata ¶ added in v0.4.0
func (*NodeInfo) GetProcesses ¶
func (*NodeInfo) GetSpawned ¶
func (*NodeInfo) GetStartedAt ¶
func (x *NodeInfo) GetStartedAt() *timestamppb.Timestamp
func (*NodeInfo) ProtoMessage ¶
func (*NodeInfo) ProtoMessage()
func (*NodeInfo) ProtoReflect ¶
func (x *NodeInfo) ProtoReflect() protoreflect.Message
type ProcessInfo ¶
type ProcessInfo struct {
Pid *v1.PID `protobuf:"bytes,1,opt,name=pid,proto3" json:"pid,omitempty"`
// Registered with WithName; empty for an unnamed process.
Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
Label string `protobuf:"bytes,3,opt,name=label,proto3" json:"label,omitempty"`
Type string `protobuf:"bytes,4,opt,name=type,proto3" json:"type,omitempty"`
Parent *v1.PID `protobuf:"bytes,5,opt,name=parent,proto3" json:"parent,omitempty"`
State ProcessState `protobuf:"varint,6,opt,name=state,proto3,enum=grpcproc.inspect.v1.ProcessState" json:"state,omitempty"`
StartedAt *timestamppb.Timestamp `protobuf:"bytes,7,opt,name=started_at,json=startedAt,proto3" json:"started_at,omitempty"`
Mailbox *Mailbox `protobuf:"bytes,8,opt,name=mailbox,proto3" json:"mailbox,omitempty"`
Received uint64 `protobuf:"varint,9,opt,name=received,proto3" json:"received,omitempty"`
Sent uint64 `protobuf:"varint,10,opt,name=sent,proto3" json:"sent,omitempty"`
CallsInFlight uint32 `protobuf:"varint,11,opt,name=calls_in_flight,json=callsInFlight,proto3" json:"calls_in_flight,omitempty"`
LastMessage string `protobuf:"bytes,12,opt,name=last_message,json=lastMessage,proto3" json:"last_message,omitempty"`
Monitors uint32 `protobuf:"varint,13,opt,name=monitors,proto3" json:"monitors,omitempty"`
// Processes monitoring or linked to this one.
Watchers uint32 `protobuf:"varint,14,opt,name=watchers,proto3" json:"watchers,omitempty"`
Wakeups uint64 `protobuf:"varint,15,opt,name=wakeups,proto3" json:"wakeups,omitempty"`
// slog.Level: -4 debug, 0 info, 4 warn, 8 error.
LogLevel int32 `protobuf:"zigzag32,16,opt,name=log_level,json=logLevel,proto3" json:"log_level,omitempty"`
// Process links this one holds: whose exits end it, or reach it as an
// Exited message. Not links to nodes.
Links uint32 `protobuf:"varint,17,opt,name=links,proto3" json:"links,omitempty"`
// Whether the exits of processes it is linked to reach it as messages.
TrapExit bool `protobuf:"varint,18,opt,name=trap_exit,json=trapExit,proto3" json:"trap_exit,omitempty"`
// The global names it holds (Process.Claim), ordered.
Globals []string `protobuf:"bytes,19,rep,name=globals,proto3" json:"globals,omitempty"`
// contains filtered or unexported fields
}
func (*ProcessInfo) Descriptor
deprecated
func (*ProcessInfo) Descriptor() ([]byte, []int)
Deprecated: Use ProcessInfo.ProtoReflect.Descriptor instead.
func (*ProcessInfo) GetCallsInFlight ¶
func (x *ProcessInfo) GetCallsInFlight() uint32
func (*ProcessInfo) GetGlobals ¶ added in v0.4.0
func (x *ProcessInfo) GetGlobals() []string
func (*ProcessInfo) GetLabel ¶
func (x *ProcessInfo) GetLabel() string
func (*ProcessInfo) GetLastMessage ¶
func (x *ProcessInfo) GetLastMessage() string
func (*ProcessInfo) GetLinks ¶ added in v0.0.4
func (x *ProcessInfo) GetLinks() uint32
func (*ProcessInfo) GetLogLevel ¶
func (x *ProcessInfo) GetLogLevel() int32
func (*ProcessInfo) GetMailbox ¶
func (x *ProcessInfo) GetMailbox() *Mailbox
func (*ProcessInfo) GetMonitors ¶
func (x *ProcessInfo) GetMonitors() uint32
func (*ProcessInfo) GetName ¶
func (x *ProcessInfo) GetName() string
func (*ProcessInfo) GetParent ¶
func (x *ProcessInfo) GetParent() *v1.PID
func (*ProcessInfo) GetPid ¶
func (x *ProcessInfo) GetPid() *v1.PID
func (*ProcessInfo) GetReceived ¶
func (x *ProcessInfo) GetReceived() uint64
func (*ProcessInfo) GetSent ¶
func (x *ProcessInfo) GetSent() uint64
func (*ProcessInfo) GetStartedAt ¶
func (x *ProcessInfo) GetStartedAt() *timestamppb.Timestamp
func (*ProcessInfo) GetState ¶
func (x *ProcessInfo) GetState() ProcessState
func (*ProcessInfo) GetTrapExit ¶ added in v0.0.4
func (x *ProcessInfo) GetTrapExit() bool
func (*ProcessInfo) GetType ¶
func (x *ProcessInfo) GetType() string
func (*ProcessInfo) GetWakeups ¶
func (x *ProcessInfo) GetWakeups() uint64
func (*ProcessInfo) GetWatchers ¶
func (x *ProcessInfo) GetWatchers() uint32
func (*ProcessInfo) ProtoMessage ¶
func (*ProcessInfo) ProtoMessage()
func (*ProcessInfo) ProtoReflect ¶
func (x *ProcessInfo) ProtoReflect() protoreflect.Message
func (*ProcessInfo) Reset ¶
func (x *ProcessInfo) Reset()
func (*ProcessInfo) String ¶
func (x *ProcessInfo) String() string
type ProcessState ¶
type ProcessState int32
const ( ProcessState_PROCESS_STATE_UNSPECIFIED ProcessState = 0 ProcessState_PROCESS_STATE_IDLE ProcessState = 1 ProcessState_PROCESS_STATE_RUNNING ProcessState = 2 ProcessState_PROCESS_STATE_WAITING_REPLY ProcessState = 3 ProcessState_PROCESS_STATE_EXITING ProcessState = 4 )
func (ProcessState) Descriptor ¶
func (ProcessState) Descriptor() protoreflect.EnumDescriptor
func (ProcessState) Enum ¶
func (x ProcessState) Enum() *ProcessState
func (ProcessState) EnumDescriptor
deprecated
func (ProcessState) EnumDescriptor() ([]byte, []int)
Deprecated: Use ProcessState.Descriptor instead.
func (ProcessState) Number ¶
func (x ProcessState) Number() protoreflect.EnumNumber
func (ProcessState) String ¶
func (x ProcessState) String() string
func (ProcessState) Type ¶
func (ProcessState) Type() protoreflect.EnumType
type SendRequest ¶
type SendRequest struct {
Node string `protobuf:"bytes,1,opt,name=node,proto3" json:"node,omitempty"`
Target *Target `protobuf:"bytes,2,opt,name=target,proto3" json:"target,omitempty"`
Body *anypb.Any `protobuf:"bytes,3,opt,name=body,proto3" json:"body,omitempty"`
// contains filtered or unexported fields
}
func (*SendRequest) Descriptor
deprecated
func (*SendRequest) Descriptor() ([]byte, []int)
Deprecated: Use SendRequest.ProtoReflect.Descriptor instead.
func (*SendRequest) GetBody ¶
func (x *SendRequest) GetBody() *anypb.Any
func (*SendRequest) GetNode ¶
func (x *SendRequest) GetNode() string
func (*SendRequest) GetTarget ¶
func (x *SendRequest) GetTarget() *Target
func (*SendRequest) ProtoMessage ¶
func (*SendRequest) ProtoMessage()
func (*SendRequest) ProtoReflect ¶
func (x *SendRequest) ProtoReflect() protoreflect.Message
func (*SendRequest) Reset ¶
func (x *SendRequest) Reset()
func (*SendRequest) String ¶
func (x *SendRequest) String() string
type SendResponse ¶
type SendResponse struct {
// contains filtered or unexported fields
}
func (*SendResponse) Descriptor
deprecated
func (*SendResponse) Descriptor() ([]byte, []int)
Deprecated: Use SendResponse.ProtoReflect.Descriptor instead.
func (*SendResponse) ProtoMessage ¶
func (*SendResponse) ProtoMessage()
func (*SendResponse) ProtoReflect ¶
func (x *SendResponse) ProtoReflect() protoreflect.Message
func (*SendResponse) Reset ¶
func (x *SendResponse) Reset()
func (*SendResponse) String ¶
func (x *SendResponse) String() string
type SetLogLevelRequest ¶
type SetLogLevelRequest struct {
Node string `protobuf:"bytes,1,opt,name=node,proto3" json:"node,omitempty"`
Target *Target `protobuf:"bytes,2,opt,name=target,proto3" json:"target,omitempty"`
Level int32 `protobuf:"zigzag32,3,opt,name=level,proto3" json:"level,omitempty"`
// contains filtered or unexported fields
}
func (*SetLogLevelRequest) Descriptor
deprecated
func (*SetLogLevelRequest) Descriptor() ([]byte, []int)
Deprecated: Use SetLogLevelRequest.ProtoReflect.Descriptor instead.
func (*SetLogLevelRequest) GetLevel ¶
func (x *SetLogLevelRequest) GetLevel() int32
func (*SetLogLevelRequest) GetNode ¶
func (x *SetLogLevelRequest) GetNode() string
func (*SetLogLevelRequest) GetTarget ¶
func (x *SetLogLevelRequest) GetTarget() *Target
func (*SetLogLevelRequest) ProtoMessage ¶
func (*SetLogLevelRequest) ProtoMessage()
func (*SetLogLevelRequest) ProtoReflect ¶
func (x *SetLogLevelRequest) ProtoReflect() protoreflect.Message
func (*SetLogLevelRequest) Reset ¶
func (x *SetLogLevelRequest) Reset()
func (*SetLogLevelRequest) String ¶
func (x *SetLogLevelRequest) String() string
type SetLogLevelResponse ¶
type SetLogLevelResponse struct {
// contains filtered or unexported fields
}
func (*SetLogLevelResponse) Descriptor
deprecated
func (*SetLogLevelResponse) Descriptor() ([]byte, []int)
Deprecated: Use SetLogLevelResponse.ProtoReflect.Descriptor instead.
func (*SetLogLevelResponse) ProtoMessage ¶
func (*SetLogLevelResponse) ProtoMessage()
func (*SetLogLevelResponse) ProtoReflect ¶
func (x *SetLogLevelResponse) ProtoReflect() protoreflect.Message
func (*SetLogLevelResponse) Reset ¶
func (x *SetLogLevelResponse) Reset()
func (*SetLogLevelResponse) String ¶
func (x *SetLogLevelResponse) String() string
type Target ¶
type Target struct {
// Types that are valid to be assigned to Kind:
//
// *Target_Pid
// *Target_Name
Kind isTarget_Kind `protobuf_oneof:"kind"`
// contains filtered or unexported fields
}
Target names a process by pid or by name, on the request's node.
func (*Target) Descriptor
deprecated
func (*Target) ProtoMessage ¶
func (*Target) ProtoMessage()
func (*Target) ProtoReflect ¶
func (x *Target) ProtoReflect() protoreflect.Message
type Target_Name ¶
type Target_Name struct {
Name string `protobuf:"bytes,2,opt,name=name,proto3,oneof"`
}
type Target_Pid ¶
type UnimplementedInspectorServer ¶
type UnimplementedInspectorServer struct{}
UnimplementedInspectorServer must be embedded to have forward compatible implementations.
NOTE: this should be embedded by value instead of pointer to avoid a nil pointer dereference when methods are called.
func (UnimplementedInspectorServer) Call ¶ added in v0.1.0
func (UnimplementedInspectorServer) Call(context.Context, *CallRequest) (*CallResponse, error)
func (UnimplementedInspectorServer) Exit ¶
func (UnimplementedInspectorServer) Exit(context.Context, *ExitRequest) (*ExitResponse, error)
func (UnimplementedInspectorServer) GetNode ¶
func (UnimplementedInspectorServer) GetNode(context.Context, *GetNodeRequest) (*GetNodeResponse, error)
func (UnimplementedInspectorServer) GetProcess ¶
func (UnimplementedInspectorServer) GetProcess(context.Context, *GetProcessRequest) (*GetProcessResponse, error)
func (UnimplementedInspectorServer) ListNames ¶ added in v0.4.0
func (UnimplementedInspectorServer) ListNames(context.Context, *ListNamesRequest) (*ListNamesResponse, error)
func (UnimplementedInspectorServer) ListProcesses ¶
func (UnimplementedInspectorServer) ListProcesses(context.Context, *ListProcessesRequest) (*ListProcessesResponse, error)
func (UnimplementedInspectorServer) LookupName ¶ added in v0.4.0
func (UnimplementedInspectorServer) LookupName(context.Context, *LookupNameRequest) (*LookupNameResponse, error)
func (UnimplementedInspectorServer) Send ¶
func (UnimplementedInspectorServer) Send(context.Context, *SendRequest) (*SendResponse, error)
func (UnimplementedInspectorServer) SetLogLevel ¶
func (UnimplementedInspectorServer) SetLogLevel(context.Context, *SetLogLevelRequest) (*SetLogLevelResponse, error)
func (UnimplementedInspectorServer) Watch ¶
func (UnimplementedInspectorServer) Watch(*WatchRequest, grpc.ServerStreamingServer[WatchResponse]) 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 WatchRequest ¶
type WatchRequest struct {
Node string `protobuf:"bytes,1,opt,name=node,proto3" json:"node,omitempty"`
// Events buffered for this watcher; beyond it events are dropped and
// counted in Event.missed. Default 256, at most 4096.
Buffer uint32 `protobuf:"varint,2,opt,name=buffer,proto3" json:"buffer,omitempty"`
// contains filtered or unexported fields
}
func (*WatchRequest) Descriptor
deprecated
func (*WatchRequest) Descriptor() ([]byte, []int)
Deprecated: Use WatchRequest.ProtoReflect.Descriptor instead.
func (*WatchRequest) GetBuffer ¶
func (x *WatchRequest) GetBuffer() uint32
func (*WatchRequest) GetNode ¶
func (x *WatchRequest) GetNode() 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
type WatchResponse ¶
type WatchResponse struct {
Event *Event `protobuf:"bytes,1,opt,name=event,proto3" json:"event,omitempty"`
// contains filtered or unexported fields
}
func (*WatchResponse) Descriptor
deprecated
func (*WatchResponse) Descriptor() ([]byte, []int)
Deprecated: Use WatchResponse.ProtoReflect.Descriptor instead.
func (*WatchResponse) GetEvent ¶
func (x *WatchResponse) GetEvent() *Event
func (*WatchResponse) ProtoMessage ¶
func (*WatchResponse) ProtoMessage()
func (*WatchResponse) ProtoReflect ¶
func (x *WatchResponse) ProtoReflect() protoreflect.Message
func (*WatchResponse) Reset ¶
func (x *WatchResponse) Reset()
func (*WatchResponse) String ¶
func (x *WatchResponse) String() string