inspectv1

package
v0.0.5 Latest Latest
Warning

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

Go to latest
Published: Sep 28, 2026 License: MIT Imports: 13 Imported by: 2 modules, 1 package

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

View Source
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_Exit_FullMethodName          = "/grpcproc.inspect.v1.Inspector/Exit"
	Inspector_Watch_FullMethodName         = "/grpcproc.inspect.v1.Inspector/Watch"
)

Variables

View Source
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.

View Source
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.

View Source
var File_grpcproc_inspect_v1_inspect_proto protoreflect.FileDescriptor
View Source
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: "Exit",
			Handler:    _Inspector_Exit_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 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) Descriptor() ([]byte, []int)

Deprecated: Use Event.ProtoReflect.Descriptor instead.

func (*Event) GetDeadLetter

func (x *Event) GetDeadLetter() *DeadLetter

func (*Event) GetExited

func (x *Event) GetExited() *Exited

func (*Event) GetKind

func (x *Event) GetKind() isEvent_Kind

func (*Event) GetLinkDown

func (x *Event) GetLinkDown() *LinkDown

func (*Event) GetLinkUp

func (x *Event) GetLinkUp() *NodeID

func (*Event) GetMissed

func (x *Event) GetMissed() uint64

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

func (*Event) Reset

func (x *Event) Reset()

func (*Event) String

func (x *Event) String() string

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) Descriptor() ([]byte, []int)

Deprecated: Use Exited.ProtoReflect.Descriptor instead.

func (*Exited) GetProcess

func (x *Exited) GetProcess() *ProcessInfo

func (*Exited) GetReason

func (x *Exited) GetReason() string

func (*Exited) ProtoMessage

func (*Exited) ProtoMessage()

func (*Exited) ProtoReflect

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

func (*Exited) Reset

func (x *Exited) Reset()

func (*Exited) String

func (x *Exited) String() string

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 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)
	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)
}

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)
	Exit(context.Context, *ExitRequest) (*ExitResponse, error)
	// Watch streams events until the client cancels.
	Watch(*WatchRequest, grpc.ServerStreamingServer[WatchResponse]) 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 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"`
	// contains filtered or unexported fields
}

func (*Link) Descriptor deprecated

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

Deprecated: Use Link.ProtoReflect.Descriptor instead.

func (*Link) GetBytes

func (x *Link) GetBytes() uint64

func (*Link) GetEstablishedAt

func (x *Link) GetEstablishedAt() *timestamppb.Timestamp

func (*Link) GetLastError

func (x *Link) GetLastError() string

func (*Link) GetMessages

func (x *Link) GetMessages() uint64

func (*Link) GetOutbound

func (x *Link) GetOutbound() bool

func (*Link) GetPeer

func (x *Link) GetPeer() *NodeID

func (*Link) GetQueued added in v0.0.3

func (x *Link) GetQueued() uint32

func (*Link) GetReconnects

func (x *Link) GetReconnects() uint64

func (*Link) GetRetryAt added in v0.0.3

func (x *Link) GetRetryAt() *timestamppb.Timestamp

func (*Link) GetState

func (x *Link) GetState() LinkState

func (*Link) ProtoMessage

func (*Link) ProtoMessage()

func (*Link) ProtoReflect

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

func (*Link) Reset

func (x *Link) Reset()

func (*Link) String

func (x *Link) String() string

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) Descriptor() ([]byte, []int)

Deprecated: Use LinkDown.ProtoReflect.Descriptor instead.

func (*LinkDown) GetError

func (x *LinkDown) GetError() string

func (*LinkDown) GetPeer

func (x *LinkDown) GetPeer() *NodeID

func (*LinkDown) ProtoMessage

func (*LinkDown) ProtoMessage()

func (*LinkDown) ProtoReflect

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

func (*LinkDown) Reset

func (x *LinkDown) Reset()

func (*LinkDown) String

func (x *LinkDown) String() string

type LinkState

type LinkState int32
const (
	LinkState_LINK_STATE_UNSPECIFIED LinkState = 0
	LinkState_LINK_STATE_CONNECTING  LinkState = 1
	LinkState_LINK_STATE_UP          LinkState = 2
	LinkState_LINK_STATE_DOWN        LinkState = 3
)

func (LinkState) Descriptor

func (LinkState) Descriptor() protoreflect.EnumDescriptor

func (LinkState) Enum

func (x LinkState) Enum() *LinkState

func (LinkState) EnumDescriptor deprecated

func (LinkState) EnumDescriptor() ([]byte, []int)

Deprecated: Use LinkState.Descriptor instead.

func (LinkState) Number

func (x LinkState) Number() protoreflect.EnumNumber

func (LinkState) String

func (x LinkState) String() string

func (LinkState) Type

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 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) Descriptor() ([]byte, []int)

Deprecated: Use Mailbox.ProtoReflect.Descriptor instead.

func (*Mailbox) GetDepth

func (x *Mailbox) GetDepth() uint32

func (*Mailbox) GetOldestAge

func (x *Mailbox) GetOldestAge() *durationpb.Duration

func (*Mailbox) GetPeak

func (x *Mailbox) GetPeak() uint32

func (*Mailbox) ProtoMessage

func (*Mailbox) ProtoMessage()

func (*Mailbox) ProtoReflect

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

func (*Mailbox) Reset

func (x *Mailbox) Reset()

func (*Mailbox) String

func (x *Mailbox) String() string

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) Descriptor() ([]byte, []int)

Deprecated: Use NodeID.ProtoReflect.Descriptor instead.

func (*NodeID) GetIncarnation

func (x *NodeID) GetIncarnation() uint64

func (*NodeID) GetName

func (x *NodeID) GetName() string

func (*NodeID) ProtoMessage

func (*NodeID) ProtoMessage()

func (*NodeID) ProtoReflect

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

func (*NodeID) Reset

func (x *NodeID) Reset()

func (*NodeID) String

func (x *NodeID) String() string

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"`
	// contains filtered or unexported fields
}

func (*NodeInfo) Descriptor deprecated

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

Deprecated: Use NodeInfo.ProtoReflect.Descriptor instead.

func (*NodeInfo) GetAdvertise

func (x *NodeInfo) GetAdvertise() string

func (*NodeInfo) GetDeadLetters

func (x *NodeInfo) GetDeadLetters() uint64

func (*NodeInfo) GetExited

func (x *NodeInfo) GetExited() uint64

func (*NodeInfo) GetId

func (x *NodeInfo) GetId() *NodeID
func (x *NodeInfo) GetLinks() []*Link

func (*NodeInfo) GetProcesses

func (x *NodeInfo) GetProcesses() uint32

func (*NodeInfo) GetSpawned

func (x *NodeInfo) GetSpawned() uint64

func (*NodeInfo) GetStartedAt

func (x *NodeInfo) GetStartedAt() *timestamppb.Timestamp

func (*NodeInfo) ProtoMessage

func (*NodeInfo) ProtoMessage()

func (*NodeInfo) ProtoReflect

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

func (*NodeInfo) Reset

func (x *NodeInfo) Reset()

func (*NodeInfo) String

func (x *NodeInfo) String() string

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"`
	// 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) GetLabel

func (x *ProcessInfo) GetLabel() string

func (*ProcessInfo) GetLastMessage

func (x *ProcessInfo) GetLastMessage() string
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) Enum

func (x ProcessState) Enum() *ProcessState

func (ProcessState) EnumDescriptor deprecated

func (ProcessState) EnumDescriptor() ([]byte, []int)

Deprecated: Use ProcessState.Descriptor instead.

func (ProcessState) Number

func (ProcessState) String

func (x ProcessState) String() string

func (ProcessState) Type

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) Descriptor() ([]byte, []int)

Deprecated: Use Target.ProtoReflect.Descriptor instead.

func (*Target) GetKind

func (x *Target) GetKind() isTarget_Kind

func (*Target) GetName

func (x *Target) GetName() string

func (*Target) GetPid

func (x *Target) GetPid() *v1.PID

func (*Target) ProtoMessage

func (*Target) ProtoMessage()

func (*Target) ProtoReflect

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

func (*Target) Reset

func (x *Target) Reset()

func (*Target) String

func (x *Target) String() string

type Target_Name

type Target_Name struct {
	Name string `protobuf:"bytes,2,opt,name=name,proto3,oneof"`
}

type Target_Pid

type Target_Pid struct {
	Pid *v1.PID `protobuf:"bytes,1,opt,name=pid,proto3,oneof"`
}

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) Exit

func (UnimplementedInspectorServer) GetNode

func (UnimplementedInspectorServer) GetProcess

func (UnimplementedInspectorServer) ListProcesses

func (UnimplementedInspectorServer) Send

func (UnimplementedInspectorServer) SetLogLevel

func (UnimplementedInspectorServer) Watch

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

Jump to

Keyboard shortcuts

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