Documentation
¶
Index ¶
- Variables
- type NodeMetadata
- func (*NodeMetadata) Descriptor() ([]byte, []int)deprecated
- func (x *NodeMetadata) GetId() int64
- func (x *NodeMetadata) GetLabels() map[string]string
- func (x *NodeMetadata) GetSn() string
- func (*NodeMetadata) ProtoMessage()
- func (x *NodeMetadata) ProtoReflect() protoreflect.Message
- func (x *NodeMetadata) Reset()
- func (x *NodeMetadata) String() string
- type Protocol
- type TaskMessage
- func (*TaskMessage) Descriptor() ([]byte, []int)deprecated
- func (x *TaskMessage) GetMetadata() map[string]string
- func (x *TaskMessage) GetPayload() []byte
- func (x *TaskMessage) GetProtocol() Protocol
- func (x *TaskMessage) GetRunId() int64
- func (x *TaskMessage) GetTarget() string
- func (x *TaskMessage) GetTaskId() int64
- func (x *TaskMessage) GetTaskSn() string
- func (x *TaskMessage) GetTimeout() *durationpb.Duration
- func (*TaskMessage) ProtoMessage()
- func (x *TaskMessage) ProtoReflect() protoreflect.Message
- func (x *TaskMessage) Reset()
- func (x *TaskMessage) String() string
- type TaskResult
- func (*TaskResult) Descriptor() ([]byte, []int)deprecated
- func (x *TaskResult) GetDuration() *durationpb.Duration
- func (x *TaskResult) GetErrors() map[string]string
- func (x *TaskResult) GetLatencyMs() int64
- func (x *TaskResult) GetMetadata() map[string]string
- func (x *TaskResult) GetNodeId() string
- func (x *TaskResult) GetProtocol() Protocol
- func (x *TaskResult) GetRunId() int64
- func (x *TaskResult) GetStatusInfo() string
- func (x *TaskResult) GetSuccess() bool
- func (x *TaskResult) GetTaskId() int64
- func (x *TaskResult) GetTaskSn() string
- func (*TaskResult) ProtoMessage()
- func (x *TaskResult) ProtoReflect() protoreflect.Message
- func (x *TaskResult) Reset()
- func (x *TaskResult) String() string
Constants ¶
This section is empty.
Variables ¶
View Source
var ( Protocol_name = map[int32]string{ 0: "PROTOCOL_UNSPECIFIED", 1: "PROTOCOL_ICMP", 2: "PROTOCOL_TCP", 3: "PROTOCOL_UDP", 4: "PROTOCOL_HTTP", 5: "PROTOCOL_HTTPS", 6: "PROTOCOL_DNS", 7: "PROTOCOL_BROWSER", } Protocol_value = map[string]int32{ "PROTOCOL_UNSPECIFIED": 0, "PROTOCOL_ICMP": 1, "PROTOCOL_TCP": 2, "PROTOCOL_UDP": 3, "PROTOCOL_HTTP": 4, "PROTOCOL_HTTPS": 5, "PROTOCOL_DNS": 6, "PROTOCOL_BROWSER": 7, } )
Enum value maps for Protocol.
View Source
var File_message_v1_message_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type NodeMetadata ¶
type NodeMetadata struct {
Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` // 节点 ID
Sn string `protobuf:"bytes,2,opt,name=sn,proto3" json:"sn,omitempty"` // 节点 SN
Labels map[string]string `` // 节点 Labels
/* 139-byte string literal not displayed */
// contains filtered or unexported fields
}
func (*NodeMetadata) Descriptor
deprecated
func (*NodeMetadata) Descriptor() ([]byte, []int)
Deprecated: Use NodeMetadata.ProtoReflect.Descriptor instead.
func (*NodeMetadata) GetId ¶
func (x *NodeMetadata) GetId() int64
func (*NodeMetadata) GetLabels ¶
func (x *NodeMetadata) GetLabels() map[string]string
func (*NodeMetadata) GetSn ¶
func (x *NodeMetadata) GetSn() string
func (*NodeMetadata) ProtoMessage ¶
func (*NodeMetadata) ProtoMessage()
func (*NodeMetadata) ProtoReflect ¶
func (x *NodeMetadata) ProtoReflect() protoreflect.Message
func (*NodeMetadata) Reset ¶
func (x *NodeMetadata) Reset()
func (*NodeMetadata) String ¶
func (x *NodeMetadata) String() string
type Protocol ¶
type Protocol int32
const ( Protocol_PROTOCOL_UNSPECIFIED Protocol = 0 Protocol_PROTOCOL_ICMP Protocol = 1 Protocol_PROTOCOL_TCP Protocol = 2 Protocol_PROTOCOL_UDP Protocol = 3 Protocol_PROTOCOL_HTTP Protocol = 4 Protocol_PROTOCOL_HTTPS Protocol = 5 Protocol_PROTOCOL_DNS Protocol = 6 Protocol_PROTOCOL_BROWSER Protocol = 7 )
func (Protocol) Descriptor ¶
func (Protocol) Descriptor() protoreflect.EnumDescriptor
func (Protocol) EnumDescriptor
deprecated
func (Protocol) Number ¶
func (x Protocol) Number() protoreflect.EnumNumber
func (Protocol) Type ¶
func (Protocol) Type() protoreflect.EnumType
type TaskMessage ¶
type TaskMessage struct {
TaskId int64 `protobuf:"varint,1,opt,name=task_id,json=taskId,proto3" json:"task_id,omitempty"`
TaskSn string `protobuf:"bytes,2,opt,name=task_sn,json=taskSn,proto3" json:"task_sn,omitempty"`
Protocol Protocol `protobuf:"varint,3,opt,name=protocol,proto3,enum=api.message.v1.Protocol" json:"protocol,omitempty"`
Target string `protobuf:"bytes,4,opt,name=target,proto3" json:"target,omitempty"`
Timeout *durationpb.Duration `protobuf:"bytes,5,opt,name=timeout,proto3" json:"timeout,omitempty"`
Payload []byte `protobuf:"bytes,6,opt,name=payload,proto3" json:"payload,omitempty"`
Metadata map[string]string `` /* 143-byte string literal not displayed */
RunId int64 `protobuf:"varint,8,opt,name=run_id,json=runId,proto3" json:"run_id,omitempty"`
// contains filtered or unexported fields
}
func (*TaskMessage) Descriptor
deprecated
func (*TaskMessage) Descriptor() ([]byte, []int)
Deprecated: Use TaskMessage.ProtoReflect.Descriptor instead.
func (*TaskMessage) GetMetadata ¶
func (x *TaskMessage) GetMetadata() map[string]string
func (*TaskMessage) GetPayload ¶
func (x *TaskMessage) GetPayload() []byte
func (*TaskMessage) GetProtocol ¶
func (x *TaskMessage) GetProtocol() Protocol
func (*TaskMessage) GetRunId ¶
func (x *TaskMessage) GetRunId() int64
func (*TaskMessage) GetTarget ¶
func (x *TaskMessage) GetTarget() string
func (*TaskMessage) GetTaskId ¶
func (x *TaskMessage) GetTaskId() int64
func (*TaskMessage) GetTaskSn ¶
func (x *TaskMessage) GetTaskSn() string
func (*TaskMessage) GetTimeout ¶
func (x *TaskMessage) GetTimeout() *durationpb.Duration
func (*TaskMessage) ProtoMessage ¶
func (*TaskMessage) ProtoMessage()
func (*TaskMessage) ProtoReflect ¶
func (x *TaskMessage) ProtoReflect() protoreflect.Message
func (*TaskMessage) Reset ¶
func (x *TaskMessage) Reset()
func (*TaskMessage) String ¶
func (x *TaskMessage) String() string
type TaskResult ¶
type TaskResult struct {
TaskId int64 `protobuf:"varint,1,opt,name=task_id,json=taskId,proto3" json:"task_id,omitempty"`
TaskSn string `protobuf:"bytes,2,opt,name=task_sn,json=taskSn,proto3" json:"task_sn,omitempty"`
NodeId string `protobuf:"bytes,3,opt,name=node_id,json=nodeId,proto3" json:"node_id,omitempty"`
Protocol Protocol `protobuf:"varint,4,opt,name=protocol,proto3,enum=api.message.v1.Protocol" json:"protocol,omitempty"`
Success bool `protobuf:"varint,5,opt,name=success,proto3" json:"success,omitempty"`
Duration *durationpb.Duration `protobuf:"bytes,6,opt,name=duration,proto3" json:"duration,omitempty"`
LatencyMs int64 `protobuf:"varint,7,opt,name=latency_ms,json=latencyMs,proto3" json:"latency_ms,omitempty"`
StatusInfo string `protobuf:"bytes,8,opt,name=status_info,json=statusInfo,proto3" json:"status_info,omitempty"`
Metadata map[string]string `` /* 143-byte string literal not displayed */
Errors map[string]string `` /* 140-byte string literal not displayed */
RunId int64 `protobuf:"varint,11,opt,name=run_id,json=runId,proto3" json:"run_id,omitempty"`
// contains filtered or unexported fields
}
func (*TaskResult) Descriptor
deprecated
func (*TaskResult) Descriptor() ([]byte, []int)
Deprecated: Use TaskResult.ProtoReflect.Descriptor instead.
func (*TaskResult) GetDuration ¶
func (x *TaskResult) GetDuration() *durationpb.Duration
func (*TaskResult) GetErrors ¶
func (x *TaskResult) GetErrors() map[string]string
func (*TaskResult) GetLatencyMs ¶
func (x *TaskResult) GetLatencyMs() int64
func (*TaskResult) GetMetadata ¶
func (x *TaskResult) GetMetadata() map[string]string
func (*TaskResult) GetNodeId ¶
func (x *TaskResult) GetNodeId() string
func (*TaskResult) GetProtocol ¶
func (x *TaskResult) GetProtocol() Protocol
func (*TaskResult) GetRunId ¶
func (x *TaskResult) GetRunId() int64
func (*TaskResult) GetStatusInfo ¶
func (x *TaskResult) GetStatusInfo() string
func (*TaskResult) GetSuccess ¶
func (x *TaskResult) GetSuccess() bool
func (*TaskResult) GetTaskId ¶
func (x *TaskResult) GetTaskId() int64
func (*TaskResult) GetTaskSn ¶
func (x *TaskResult) GetTaskSn() string
func (*TaskResult) ProtoMessage ¶
func (*TaskResult) ProtoMessage()
func (*TaskResult) ProtoReflect ¶
func (x *TaskResult) ProtoReflect() protoreflect.Message
func (*TaskResult) Reset ¶
func (x *TaskResult) Reset()
func (*TaskResult) String ¶
func (x *TaskResult) String() string
Click to show internal directories.
Click to hide internal directories.