Documentation ¶
Index ¶
- Variables
- func RegisterSchedulerServer(s grpc.ServiceRegistrar, srv SchedulerServer)
- type AnnounceHostRequest
- func (*AnnounceHostRequest) Descriptor() ([]byte, []int)deprecated
- func (x *AnnounceHostRequest) GetBuild() *Build
- func (x *AnnounceHostRequest) GetCpu() *CPU
- func (x *AnnounceHostRequest) GetDisk() *Disk
- func (x *AnnounceHostRequest) GetDownloadPort() int32
- func (x *AnnounceHostRequest) GetHostname() string
- func (x *AnnounceHostRequest) GetId() string
- func (x *AnnounceHostRequest) GetIp() string
- func (x *AnnounceHostRequest) GetKernelVersion() string
- func (x *AnnounceHostRequest) GetMemory() *Memory
- func (x *AnnounceHostRequest) GetNetwork() *Network
- func (x *AnnounceHostRequest) GetOs() string
- func (x *AnnounceHostRequest) GetPlatform() string
- func (x *AnnounceHostRequest) GetPlatformFamily() string
- func (x *AnnounceHostRequest) GetPlatformVersion() string
- func (x *AnnounceHostRequest) GetPort() int32
- func (x *AnnounceHostRequest) GetType() string
- func (*AnnounceHostRequest) ProtoMessage()
- func (x *AnnounceHostRequest) ProtoReflect() protoreflect.Message
- func (x *AnnounceHostRequest) Reset()
- func (x *AnnounceHostRequest) String() string
- func (m *AnnounceHostRequest) Validate() error
- func (m *AnnounceHostRequest) ValidateAll() error
- type AnnounceHostRequestMultiError
- type AnnounceHostRequestValidationError
- func (e AnnounceHostRequestValidationError) Cause() error
- func (e AnnounceHostRequestValidationError) Error() string
- func (e AnnounceHostRequestValidationError) ErrorName() string
- func (e AnnounceHostRequestValidationError) Field() string
- func (e AnnounceHostRequestValidationError) Key() bool
- func (e AnnounceHostRequestValidationError) Reason() string
- type AnnounceTaskRequest
- func (*AnnounceTaskRequest) Descriptor() ([]byte, []int)deprecated
- func (x *AnnounceTaskRequest) GetPeerHost() *PeerHost
- func (x *AnnounceTaskRequest) GetPiecePacket() *v1.PiecePacket
- func (x *AnnounceTaskRequest) GetTaskId() string
- func (x *AnnounceTaskRequest) GetTaskType() v1.TaskType
- func (x *AnnounceTaskRequest) GetUrl() string
- func (x *AnnounceTaskRequest) GetUrlMeta() *v1.UrlMeta
- func (*AnnounceTaskRequest) ProtoMessage()
- func (x *AnnounceTaskRequest) ProtoReflect() protoreflect.Message
- func (x *AnnounceTaskRequest) Reset()
- func (x *AnnounceTaskRequest) String() string
- func (m *AnnounceTaskRequest) Validate() error
- func (m *AnnounceTaskRequest) ValidateAll() error
- type AnnounceTaskRequestMultiError
- type AnnounceTaskRequestValidationError
- func (e AnnounceTaskRequestValidationError) Cause() error
- func (e AnnounceTaskRequestValidationError) Error() string
- func (e AnnounceTaskRequestValidationError) ErrorName() string
- func (e AnnounceTaskRequestValidationError) Field() string
- func (e AnnounceTaskRequestValidationError) Key() bool
- func (e AnnounceTaskRequestValidationError) Reason() string
- type Build
- func (*Build) Descriptor() ([]byte, []int)deprecated
- func (x *Build) GetGitCommit() string
- func (x *Build) GetGitVersion() string
- func (x *Build) GetGoVersion() string
- func (x *Build) GetPlatform() string
- func (*Build) ProtoMessage()
- func (x *Build) ProtoReflect() protoreflect.Message
- func (x *Build) Reset()
- func (x *Build) String() string
- func (m *Build) Validate() error
- func (m *Build) ValidateAll() error
- type BuildMultiError
- type BuildValidationError
- type CPU
- func (*CPU) Descriptor() ([]byte, []int)deprecated
- func (x *CPU) GetLogicalCount() uint32
- func (x *CPU) GetPercent() float64
- func (x *CPU) GetPhysicalCount() uint32
- func (x *CPU) GetProcessPercent() float64
- func (x *CPU) GetTimes() *CPUTimes
- func (*CPU) ProtoMessage()
- func (x *CPU) ProtoReflect() protoreflect.Message
- func (x *CPU) Reset()
- func (x *CPU) String() string
- func (m *CPU) Validate() error
- func (m *CPU) ValidateAll() error
- type CPUMultiError
- type CPUTimes
- func (*CPUTimes) Descriptor() ([]byte, []int)deprecated
- func (x *CPUTimes) GetGuest() float64
- func (x *CPUTimes) GetGuestNice() float64
- func (x *CPUTimes) GetIdle() float64
- func (x *CPUTimes) GetIowait() float64
- func (x *CPUTimes) GetIrq() float64
- func (x *CPUTimes) GetNice() float64
- func (x *CPUTimes) GetSoftirq() float64
- func (x *CPUTimes) GetSteal() float64
- func (x *CPUTimes) GetSystem() float64
- func (x *CPUTimes) GetUser() float64
- func (*CPUTimes) ProtoMessage()
- func (x *CPUTimes) ProtoReflect() protoreflect.Message
- func (x *CPUTimes) Reset()
- func (x *CPUTimes) String() string
- func (m *CPUTimes) Validate() error
- func (m *CPUTimes) ValidateAll() error
- type CPUTimesMultiError
- type CPUTimesValidationError
- type CPUValidationError
- type DeleteHostsRequest
- func (*DeleteHostsRequest) Descriptor() ([]byte, []int)deprecated
- func (x *DeleteHostsRequest) GetProbesOfHosts() []*ProbesOfHost
- func (*DeleteHostsRequest) ProtoMessage()
- func (x *DeleteHostsRequest) ProtoReflect() protoreflect.Message
- func (x *DeleteHostsRequest) Reset()
- func (x *DeleteHostsRequest) String() string
- func (m *DeleteHostsRequest) Validate() error
- func (m *DeleteHostsRequest) ValidateAll() error
- type DeleteHostsRequestMultiError
- type DeleteHostsRequestValidationError
- func (e DeleteHostsRequestValidationError) Cause() error
- func (e DeleteHostsRequestValidationError) Error() string
- func (e DeleteHostsRequestValidationError) ErrorName() string
- func (e DeleteHostsRequestValidationError) Field() string
- func (e DeleteHostsRequestValidationError) Key() bool
- func (e DeleteHostsRequestValidationError) Reason() string
- type Disk
- func (*Disk) Descriptor() ([]byte, []int)deprecated
- func (x *Disk) GetFree() uint64
- func (x *Disk) GetInodesFree() uint64
- func (x *Disk) GetInodesTotal() uint64
- func (x *Disk) GetInodesUsed() uint64
- func (x *Disk) GetInodesUsedPercent() float64
- func (x *Disk) GetTotal() uint64
- func (x *Disk) GetUsed() uint64
- func (x *Disk) GetUsedPercent() float64
- func (*Disk) ProtoMessage()
- func (x *Disk) ProtoReflect() protoreflect.Message
- func (x *Disk) Reset()
- func (x *Disk) String() string
- func (m *Disk) Validate() error
- func (m *Disk) ValidateAll() error
- type DiskMultiError
- type DiskValidationError
- type LeaveHostRequest
- func (*LeaveHostRequest) Descriptor() ([]byte, []int)deprecated
- func (x *LeaveHostRequest) GetId() string
- func (*LeaveHostRequest) ProtoMessage()
- func (x *LeaveHostRequest) ProtoReflect() protoreflect.Message
- func (x *LeaveHostRequest) Reset()
- func (x *LeaveHostRequest) String() string
- func (m *LeaveHostRequest) Validate() error
- func (m *LeaveHostRequest) ValidateAll() error
- type LeaveHostRequestMultiError
- type LeaveHostRequestValidationError
- func (e LeaveHostRequestValidationError) Cause() error
- func (e LeaveHostRequestValidationError) Error() string
- func (e LeaveHostRequestValidationError) ErrorName() string
- func (e LeaveHostRequestValidationError) Field() string
- func (e LeaveHostRequestValidationError) Key() bool
- func (e LeaveHostRequestValidationError) Reason() string
- type Memory
- func (*Memory) Descriptor() ([]byte, []int)deprecated
- func (x *Memory) GetAvailable() uint64
- func (x *Memory) GetFree() uint64
- func (x *Memory) GetProcessUsedPercent() float64
- func (x *Memory) GetTotal() uint64
- func (x *Memory) GetUsed() uint64
- func (x *Memory) GetUsedPercent() float64
- func (*Memory) ProtoMessage()
- func (x *Memory) ProtoReflect() protoreflect.Message
- func (x *Memory) Reset()
- func (x *Memory) String() string
- func (m *Memory) Validate() error
- func (m *Memory) ValidateAll() error
- type MemoryMultiError
- type MemoryValidationError
- type Network
- func (*Network) Descriptor() ([]byte, []int)deprecated
- func (x *Network) GetIdc() string
- func (x *Network) GetLocation() string
- func (x *Network) GetSecurityDomain() string
- func (x *Network) GetTcpConnectionCount() uint32
- func (x *Network) GetUploadTcpConnectionCount() uint32
- func (*Network) ProtoMessage()
- func (x *Network) ProtoReflect() protoreflect.Message
- func (x *Network) Reset()
- func (x *Network) String() string
- func (m *Network) Validate() error
- func (m *Network) ValidateAll() error
- type NetworkMultiError
- type NetworkValidationError
- type PeerHost
- func (*PeerHost) Descriptor() ([]byte, []int)deprecated
- func (x *PeerHost) GetDownPort() int32
- func (x *PeerHost) GetHostname() string
- func (x *PeerHost) GetId() string
- func (x *PeerHost) GetIdc() string
- func (x *PeerHost) GetIp() string
- func (x *PeerHost) GetLocation() string
- func (x *PeerHost) GetRpcPort() int32
- func (x *PeerHost) GetSecurityDomain() string
- func (*PeerHost) ProtoMessage()
- func (x *PeerHost) ProtoReflect() protoreflect.Message
- func (x *PeerHost) Reset()
- func (x *PeerHost) String() string
- func (m *PeerHost) Validate() error
- func (m *PeerHost) ValidateAll() error
- type PeerHostMultiError
- type PeerHostValidationError
- type PeerPacket
- func (*PeerPacket) Descriptor() ([]byte, []int)deprecated
- func (x *PeerPacket) GetCandidatePeers() []*PeerPacket_DestPeer
- func (x *PeerPacket) GetCode() v1.Code
- func (m *PeerPacket) GetErrordetails() isPeerPacket_Errordetails
- func (x *PeerPacket) GetMainPeer() *PeerPacket_DestPeer
- func (x *PeerPacket) GetParallelCount() int32
- func (x *PeerPacket) GetSourceError() *v11.SourceError
- func (x *PeerPacket) GetSrcPid() string
- func (x *PeerPacket) GetTaskId() string
- func (*PeerPacket) ProtoMessage()
- func (x *PeerPacket) ProtoReflect() protoreflect.Message
- func (x *PeerPacket) Reset()
- func (x *PeerPacket) String() string
- func (m *PeerPacket) Validate() error
- func (m *PeerPacket) ValidateAll() error
- type PeerPacketMultiError
- type PeerPacketValidationError
- type PeerPacket_DestPeer
- func (*PeerPacket_DestPeer) Descriptor() ([]byte, []int)deprecated
- func (x *PeerPacket_DestPeer) GetIp() string
- func (x *PeerPacket_DestPeer) GetPeerId() string
- func (x *PeerPacket_DestPeer) GetRpcPort() int32
- func (*PeerPacket_DestPeer) ProtoMessage()
- func (x *PeerPacket_DestPeer) ProtoReflect() protoreflect.Message
- func (x *PeerPacket_DestPeer) Reset()
- func (x *PeerPacket_DestPeer) String() string
- func (m *PeerPacket_DestPeer) Validate() error
- func (m *PeerPacket_DestPeer) ValidateAll() error
- type PeerPacket_DestPeerMultiError
- type PeerPacket_DestPeerValidationError
- func (e PeerPacket_DestPeerValidationError) Cause() error
- func (e PeerPacket_DestPeerValidationError) Error() string
- func (e PeerPacket_DestPeerValidationError) ErrorName() string
- func (e PeerPacket_DestPeerValidationError) Field() string
- func (e PeerPacket_DestPeerValidationError) Key() bool
- func (e PeerPacket_DestPeerValidationError) Reason() string
- type PeerPacket_SourceError
- type PeerResult
- func (*PeerResult) Descriptor() ([]byte, []int)deprecated
- func (x *PeerResult) GetCode() v1.Code
- func (x *PeerResult) GetContentLength() int64
- func (x *PeerResult) GetCost() uint32
- func (m *PeerResult) GetErrordetails() isPeerResult_Errordetails
- func (x *PeerResult) GetIdc() string
- func (x *PeerResult) GetPeerId() string
- func (x *PeerResult) GetSecurityDomain() string
- func (x *PeerResult) GetSourceError() *v11.SourceError
- func (x *PeerResult) GetSrcIp() string
- func (x *PeerResult) GetSuccess() bool
- func (x *PeerResult) GetTaskId() string
- func (x *PeerResult) GetTotalPieceCount() int32
- func (x *PeerResult) GetTraffic() uint64
- func (x *PeerResult) GetUrl() string
- func (*PeerResult) ProtoMessage()
- func (x *PeerResult) ProtoReflect() protoreflect.Message
- func (x *PeerResult) Reset()
- func (x *PeerResult) String() string
- func (m *PeerResult) Validate() error
- func (m *PeerResult) ValidateAll() error
- type PeerResultMultiError
- type PeerResultValidationError
- type PeerResult_SourceError
- type PeerTarget
- func (*PeerTarget) Descriptor() ([]byte, []int)deprecated
- func (x *PeerTarget) GetPeerId() string
- func (x *PeerTarget) GetTaskId() string
- func (*PeerTarget) ProtoMessage()
- func (x *PeerTarget) ProtoReflect() protoreflect.Message
- func (x *PeerTarget) Reset()
- func (x *PeerTarget) String() string
- func (m *PeerTarget) Validate() error
- func (m *PeerTarget) ValidateAll() error
- type PeerTargetMultiError
- type PeerTargetValidationError
- type PeerTaskRequest
- func (*PeerTaskRequest) Descriptor() ([]byte, []int)deprecated
- func (x *PeerTaskRequest) GetIsMigrating() bool
- func (x *PeerTaskRequest) GetPeerHost() *PeerHost
- func (x *PeerTaskRequest) GetPeerId() string
- func (x *PeerTaskRequest) GetTaskId() string
- func (x *PeerTaskRequest) GetUrl() string
- func (x *PeerTaskRequest) GetUrlMeta() *v1.UrlMeta
- func (*PeerTaskRequest) ProtoMessage()
- func (x *PeerTaskRequest) ProtoReflect() protoreflect.Message
- func (x *PeerTaskRequest) Reset()
- func (x *PeerTaskRequest) String() string
- func (m *PeerTaskRequest) Validate() error
- func (m *PeerTaskRequest) ValidateAll() error
- type PeerTaskRequestMultiError
- type PeerTaskRequestValidationError
- func (e PeerTaskRequestValidationError) Cause() error
- func (e PeerTaskRequestValidationError) Error() string
- func (e PeerTaskRequestValidationError) ErrorName() string
- func (e PeerTaskRequestValidationError) Field() string
- func (e PeerTaskRequestValidationError) Key() bool
- func (e PeerTaskRequestValidationError) Reason() string
- type PieceResult
- func (*PieceResult) Descriptor() ([]byte, []int)deprecated
- func (x *PieceResult) GetBeginTime() uint64
- func (x *PieceResult) GetCode() v1.Code
- func (x *PieceResult) GetDstPid() string
- func (x *PieceResult) GetEndTime() uint64
- func (x *PieceResult) GetExtendAttribute() *v1.ExtendAttribute
- func (x *PieceResult) GetFinishedCount() int32
- func (x *PieceResult) GetPieceInfo() *v1.PieceInfo
- func (x *PieceResult) GetSrcPid() string
- func (x *PieceResult) GetSuccess() bool
- func (x *PieceResult) GetTaskId() string
- func (*PieceResult) ProtoMessage()
- func (x *PieceResult) ProtoReflect() protoreflect.Message
- func (x *PieceResult) Reset()
- func (x *PieceResult) String() string
- func (m *PieceResult) Validate() error
- func (m *PieceResult) ValidateAll() error
- type PieceResultMultiError
- type PieceResultValidationError
- func (e PieceResultValidationError) Cause() error
- func (e PieceResultValidationError) Error() string
- func (e PieceResultValidationError) ErrorName() string
- func (e PieceResultValidationError) Field() string
- func (e PieceResultValidationError) Key() bool
- func (e PieceResultValidationError) Reason() string
- type Probe
- func (*Probe) Descriptor() ([]byte, []int)deprecated
- func (x *Probe) GetHost() *v1.Host
- func (x *Probe) GetRtt() *durationpb.Duration
- func (x *Probe) GetUpdatedAt() *timestamppb.Timestamp
- func (*Probe) ProtoMessage()
- func (x *Probe) ProtoReflect() protoreflect.Message
- func (x *Probe) Reset()
- func (x *Probe) String() string
- func (m *Probe) Validate() error
- func (m *Probe) ValidateAll() error
- type ProbeMultiError
- type ProbeValidationError
- type ProbesOfHost
- func (*ProbesOfHost) Descriptor() ([]byte, []int)deprecated
- func (x *ProbesOfHost) GetHost() *v1.Host
- func (x *ProbesOfHost) GetProbes() []*Probe
- func (*ProbesOfHost) ProtoMessage()
- func (x *ProbesOfHost) ProtoReflect() protoreflect.Message
- func (x *ProbesOfHost) Reset()
- func (x *ProbesOfHost) String() string
- func (m *ProbesOfHost) Validate() error
- func (m *ProbesOfHost) ValidateAll() error
- type ProbesOfHostMultiError
- type ProbesOfHostValidationError
- func (e ProbesOfHostValidationError) Cause() error
- func (e ProbesOfHostValidationError) Error() string
- func (e ProbesOfHostValidationError) ErrorName() string
- func (e ProbesOfHostValidationError) Field() string
- func (e ProbesOfHostValidationError) Key() bool
- func (e ProbesOfHostValidationError) Reason() string
- type RegisterResult
- func (*RegisterResult) Descriptor() ([]byte, []int)deprecated
- func (m *RegisterResult) GetDirectPiece() isRegisterResult_DirectPiece
- func (x *RegisterResult) GetExtendAttribute() *v1.ExtendAttribute
- func (x *RegisterResult) GetPieceContent() []byte
- func (x *RegisterResult) GetSinglePiece() *SinglePiece
- func (x *RegisterResult) GetSizeScope() v1.SizeScope
- func (x *RegisterResult) GetTaskId() string
- func (x *RegisterResult) GetTaskType() v1.TaskType
- func (*RegisterResult) ProtoMessage()
- func (x *RegisterResult) ProtoReflect() protoreflect.Message
- func (x *RegisterResult) Reset()
- func (x *RegisterResult) String() string
- func (m *RegisterResult) Validate() error
- func (m *RegisterResult) ValidateAll() error
- type RegisterResultMultiError
- type RegisterResultValidationError
- func (e RegisterResultValidationError) Cause() error
- func (e RegisterResultValidationError) Error() string
- func (e RegisterResultValidationError) ErrorName() string
- func (e RegisterResultValidationError) Field() string
- func (e RegisterResultValidationError) Key() bool
- func (e RegisterResultValidationError) Reason() string
- type RegisterResult_PieceContent
- type RegisterResult_SinglePiece
- type SchedulerClient
- type SchedulerServer
- type Scheduler_ReportPieceResultClient
- type Scheduler_ReportPieceResultServer
- type Scheduler_SyncNetworkTopologyClient
- type Scheduler_SyncNetworkTopologyServer
- type Scheduler_SyncProbesClient
- type Scheduler_SyncProbesServer
- type SinglePiece
- func (*SinglePiece) Descriptor() ([]byte, []int)deprecated
- func (x *SinglePiece) GetDstAddr() string
- func (x *SinglePiece) GetDstPid() string
- func (x *SinglePiece) GetPieceInfo() *v1.PieceInfo
- func (*SinglePiece) ProtoMessage()
- func (x *SinglePiece) ProtoReflect() protoreflect.Message
- func (x *SinglePiece) Reset()
- func (x *SinglePiece) String() string
- func (m *SinglePiece) Validate() error
- func (m *SinglePiece) ValidateAll() error
- type SinglePieceMultiError
- type SinglePieceValidationError
- func (e SinglePieceValidationError) Cause() error
- func (e SinglePieceValidationError) Error() string
- func (e SinglePieceValidationError) ErrorName() string
- func (e SinglePieceValidationError) Field() string
- func (e SinglePieceValidationError) Key() bool
- func (e SinglePieceValidationError) Reason() string
- type StatTaskRequest
- func (*StatTaskRequest) Descriptor() ([]byte, []int)deprecated
- func (x *StatTaskRequest) GetTaskId() string
- func (*StatTaskRequest) ProtoMessage()
- func (x *StatTaskRequest) ProtoReflect() protoreflect.Message
- func (x *StatTaskRequest) Reset()
- func (x *StatTaskRequest) String() string
- func (m *StatTaskRequest) Validate() error
- func (m *StatTaskRequest) ValidateAll() error
- type StatTaskRequestMultiError
- type StatTaskRequestValidationError
- func (e StatTaskRequestValidationError) Cause() error
- func (e StatTaskRequestValidationError) Error() string
- func (e StatTaskRequestValidationError) ErrorName() string
- func (e StatTaskRequestValidationError) Field() string
- func (e StatTaskRequestValidationError) Key() bool
- func (e StatTaskRequestValidationError) Reason() string
- type SyncNetworkTopologyRequest
- func (*SyncNetworkTopologyRequest) Descriptor() ([]byte, []int)deprecated
- func (x *SyncNetworkTopologyRequest) GetDeleteProbesOfHostsRequest() *DeleteHostsRequest
- func (m *SyncNetworkTopologyRequest) GetRequest() isSyncNetworkTopologyRequest_Request
- func (x *SyncNetworkTopologyRequest) GetUpdateProbesOfHostsRequest() *UpdateHostsRequest
- func (*SyncNetworkTopologyRequest) ProtoMessage()
- func (x *SyncNetworkTopologyRequest) ProtoReflect() protoreflect.Message
- func (x *SyncNetworkTopologyRequest) Reset()
- func (x *SyncNetworkTopologyRequest) String() string
- func (m *SyncNetworkTopologyRequest) Validate() error
- func (m *SyncNetworkTopologyRequest) ValidateAll() error
- type SyncNetworkTopologyRequestMultiError
- type SyncNetworkTopologyRequestValidationError
- func (e SyncNetworkTopologyRequestValidationError) Cause() error
- func (e SyncNetworkTopologyRequestValidationError) Error() string
- func (e SyncNetworkTopologyRequestValidationError) ErrorName() string
- func (e SyncNetworkTopologyRequestValidationError) Field() string
- func (e SyncNetworkTopologyRequestValidationError) Key() bool
- func (e SyncNetworkTopologyRequestValidationError) Reason() string
- type SyncNetworkTopologyRequest_DeleteProbesOfHostsRequest
- type SyncNetworkTopologyRequest_UpdateProbesOfHostsRequest
- type SyncProbesRequest
- func (*SyncProbesRequest) Descriptor() ([]byte, []int)deprecated
- func (x *SyncProbesRequest) GetProbesOfHost() *ProbesOfHost
- func (*SyncProbesRequest) ProtoMessage()
- func (x *SyncProbesRequest) ProtoReflect() protoreflect.Message
- func (x *SyncProbesRequest) Reset()
- func (x *SyncProbesRequest) String() string
- func (m *SyncProbesRequest) Validate() error
- func (m *SyncProbesRequest) ValidateAll() error
- type SyncProbesRequestMultiError
- type SyncProbesRequestValidationError
- func (e SyncProbesRequestValidationError) Cause() error
- func (e SyncProbesRequestValidationError) Error() string
- func (e SyncProbesRequestValidationError) ErrorName() string
- func (e SyncProbesRequestValidationError) Field() string
- func (e SyncProbesRequestValidationError) Key() bool
- func (e SyncProbesRequestValidationError) Reason() string
- type SyncProbesResponse
- func (*SyncProbesResponse) Descriptor() ([]byte, []int)deprecated
- func (x *SyncProbesResponse) GetHosts() []*v1.Host
- func (x *SyncProbesResponse) GetProbeInterval() *durationpb.Duration
- func (*SyncProbesResponse) ProtoMessage()
- func (x *SyncProbesResponse) ProtoReflect() protoreflect.Message
- func (x *SyncProbesResponse) Reset()
- func (x *SyncProbesResponse) String() string
- func (m *SyncProbesResponse) Validate() error
- func (m *SyncProbesResponse) ValidateAll() error
- type SyncProbesResponseMultiError
- type SyncProbesResponseValidationError
- func (e SyncProbesResponseValidationError) Cause() error
- func (e SyncProbesResponseValidationError) Error() string
- func (e SyncProbesResponseValidationError) ErrorName() string
- func (e SyncProbesResponseValidationError) Field() string
- func (e SyncProbesResponseValidationError) Key() bool
- func (e SyncProbesResponseValidationError) Reason() string
- type Task
- func (*Task) Descriptor() ([]byte, []int)deprecated
- func (x *Task) GetContentLength() int64
- func (x *Task) GetHasAvailablePeer() bool
- func (x *Task) GetId() string
- func (x *Task) GetPeerCount() int32
- func (x *Task) GetState() string
- func (x *Task) GetTotalPieceCount() int32
- func (x *Task) GetType() v1.TaskType
- func (*Task) ProtoMessage()
- func (x *Task) ProtoReflect() protoreflect.Message
- func (x *Task) Reset()
- func (x *Task) String() string
- func (m *Task) Validate() error
- func (m *Task) ValidateAll() error
- type TaskMultiError
- type TaskValidationError
- type UnimplementedSchedulerServer
- func (UnimplementedSchedulerServer) AnnounceHost(context.Context, *AnnounceHostRequest) (*emptypb.Empty, error)
- func (UnimplementedSchedulerServer) AnnounceTask(context.Context, *AnnounceTaskRequest) (*emptypb.Empty, error)
- func (UnimplementedSchedulerServer) LeaveHost(context.Context, *LeaveHostRequest) (*emptypb.Empty, error)
- func (UnimplementedSchedulerServer) LeaveTask(context.Context, *PeerTarget) (*emptypb.Empty, error)
- func (UnimplementedSchedulerServer) RegisterPeerTask(context.Context, *PeerTaskRequest) (*RegisterResult, error)
- func (UnimplementedSchedulerServer) ReportPeerResult(context.Context, *PeerResult) (*emptypb.Empty, error)
- func (UnimplementedSchedulerServer) ReportPieceResult(Scheduler_ReportPieceResultServer) error
- func (UnimplementedSchedulerServer) StatTask(context.Context, *StatTaskRequest) (*Task, error)
- func (UnimplementedSchedulerServer) SyncNetworkTopology(Scheduler_SyncNetworkTopologyServer) error
- func (UnimplementedSchedulerServer) SyncProbes(Scheduler_SyncProbesServer) error
- type UnsafeSchedulerServer
- type UpdateHostsRequest
- func (*UpdateHostsRequest) Descriptor() ([]byte, []int)deprecated
- func (x *UpdateHostsRequest) GetProbesOfHosts() []*ProbesOfHost
- func (*UpdateHostsRequest) ProtoMessage()
- func (x *UpdateHostsRequest) ProtoReflect() protoreflect.Message
- func (x *UpdateHostsRequest) Reset()
- func (x *UpdateHostsRequest) String() string
- func (m *UpdateHostsRequest) Validate() error
- func (m *UpdateHostsRequest) ValidateAll() error
- type UpdateHostsRequestMultiError
- type UpdateHostsRequestValidationError
- func (e UpdateHostsRequestValidationError) Cause() error
- func (e UpdateHostsRequestValidationError) Error() string
- func (e UpdateHostsRequestValidationError) ErrorName() string
- func (e UpdateHostsRequestValidationError) Field() string
- func (e UpdateHostsRequestValidationError) Key() bool
- func (e UpdateHostsRequestValidationError) Reason() string
Constants ¶
This section is empty.
Variables ¶
var File_pkg_apis_scheduler_v1_scheduler_proto protoreflect.FileDescriptor
var Scheduler_ServiceDesc = grpc.ServiceDesc{ ServiceName: "scheduler.Scheduler", HandlerType: (*SchedulerServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "RegisterPeerTask", Handler: _Scheduler_RegisterPeerTask_Handler, }, { MethodName: "ReportPeerResult", Handler: _Scheduler_ReportPeerResult_Handler, }, { MethodName: "AnnounceTask", Handler: _Scheduler_AnnounceTask_Handler, }, { MethodName: "StatTask", Handler: _Scheduler_StatTask_Handler, }, { MethodName: "LeaveTask", Handler: _Scheduler_LeaveTask_Handler, }, { MethodName: "AnnounceHost", Handler: _Scheduler_AnnounceHost_Handler, }, { MethodName: "LeaveHost", Handler: _Scheduler_LeaveHost_Handler, }, }, Streams: []grpc.StreamDesc{ { StreamName: "ReportPieceResult", Handler: _Scheduler_ReportPieceResult_Handler, ServerStreams: true, ClientStreams: true, }, { StreamName: "SyncProbes", Handler: _Scheduler_SyncProbes_Handler, ServerStreams: true, ClientStreams: true, }, { StreamName: "SyncNetworkTopology", Handler: _Scheduler_SyncNetworkTopology_Handler, ClientStreams: true, }, }, Metadata: "pkg/apis/scheduler/v1/scheduler.proto", }
Scheduler_ServiceDesc is the grpc.ServiceDesc for Scheduler service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterSchedulerServer ¶
func RegisterSchedulerServer(s grpc.ServiceRegistrar, srv SchedulerServer)
Types ¶
type AnnounceHostRequest ¶ added in v1.2.5
type AnnounceHostRequest struct { // Host id. Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` // Host type. Type string `protobuf:"bytes,2,opt,name=type,proto3" json:"type,omitempty"` // Hostname. Hostname string `protobuf:"bytes,3,opt,name=hostname,proto3" json:"hostname,omitempty"` // Host ip. Ip string `protobuf:"bytes,4,opt,name=ip,proto3" json:"ip,omitempty"` // Port of grpc service. Port int32 `protobuf:"varint,5,opt,name=port,proto3" json:"port,omitempty"` // Port of download server. DownloadPort int32 `protobuf:"varint,6,opt,name=download_port,json=downloadPort,proto3" json:"download_port,omitempty"` // Host OS. Os string `protobuf:"bytes,7,opt,name=os,proto3" json:"os,omitempty"` // Host platform. Platform string `protobuf:"bytes,8,opt,name=platform,proto3" json:"platform,omitempty"` // Host platform family. PlatformFamily string `protobuf:"bytes,9,opt,name=platform_family,json=platformFamily,proto3" json:"platform_family,omitempty"` // Host platform version. PlatformVersion string `protobuf:"bytes,10,opt,name=platform_version,json=platformVersion,proto3" json:"platform_version,omitempty"` // Host kernel version. KernelVersion string `protobuf:"bytes,11,opt,name=kernel_version,json=kernelVersion,proto3" json:"kernel_version,omitempty"` // CPU Stat. Cpu *CPU `protobuf:"bytes,12,opt,name=cpu,proto3" json:"cpu,omitempty"` // Memory Stat. Memory *Memory `protobuf:"bytes,13,opt,name=memory,proto3" json:"memory,omitempty"` // Network Stat. Network *Network `protobuf:"bytes,14,opt,name=network,proto3" json:"network,omitempty"` // Disk Stat. Disk *Disk `protobuf:"bytes,15,opt,name=disk,proto3" json:"disk,omitempty"` // Build information. Build *Build `protobuf:"bytes,16,opt,name=build,proto3" json:"build,omitempty"` // contains filtered or unexported fields }
AnnounceHostRequest represents request of AnnounceHost.
func (*AnnounceHostRequest) Descriptor
deprecated
added in
v1.2.5
func (*AnnounceHostRequest) Descriptor() ([]byte, []int)
Deprecated: Use AnnounceHostRequest.ProtoReflect.Descriptor instead.
func (*AnnounceHostRequest) GetBuild ¶ added in v1.2.5
func (x *AnnounceHostRequest) GetBuild() *Build
func (*AnnounceHostRequest) GetCpu ¶ added in v1.2.5
func (x *AnnounceHostRequest) GetCpu() *CPU
func (*AnnounceHostRequest) GetDisk ¶ added in v1.2.5
func (x *AnnounceHostRequest) GetDisk() *Disk
func (*AnnounceHostRequest) GetDownloadPort ¶ added in v1.2.5
func (x *AnnounceHostRequest) GetDownloadPort() int32
func (*AnnounceHostRequest) GetHostname ¶ added in v1.2.5
func (x *AnnounceHostRequest) GetHostname() string
func (*AnnounceHostRequest) GetId ¶ added in v1.2.5
func (x *AnnounceHostRequest) GetId() string
func (*AnnounceHostRequest) GetIp ¶ added in v1.2.5
func (x *AnnounceHostRequest) GetIp() string
func (*AnnounceHostRequest) GetKernelVersion ¶ added in v1.2.5
func (x *AnnounceHostRequest) GetKernelVersion() string
func (*AnnounceHostRequest) GetMemory ¶ added in v1.2.5
func (x *AnnounceHostRequest) GetMemory() *Memory
func (*AnnounceHostRequest) GetNetwork ¶ added in v1.2.5
func (x *AnnounceHostRequest) GetNetwork() *Network
func (*AnnounceHostRequest) GetOs ¶ added in v1.2.5
func (x *AnnounceHostRequest) GetOs() string
func (*AnnounceHostRequest) GetPlatform ¶ added in v1.2.5
func (x *AnnounceHostRequest) GetPlatform() string
func (*AnnounceHostRequest) GetPlatformFamily ¶ added in v1.2.5
func (x *AnnounceHostRequest) GetPlatformFamily() string
func (*AnnounceHostRequest) GetPlatformVersion ¶ added in v1.2.5
func (x *AnnounceHostRequest) GetPlatformVersion() string
func (*AnnounceHostRequest) GetPort ¶ added in v1.2.5
func (x *AnnounceHostRequest) GetPort() int32
func (*AnnounceHostRequest) GetType ¶ added in v1.2.6
func (x *AnnounceHostRequest) GetType() string
func (*AnnounceHostRequest) ProtoMessage ¶ added in v1.2.5
func (*AnnounceHostRequest) ProtoMessage()
func (*AnnounceHostRequest) ProtoReflect ¶ added in v1.2.5
func (x *AnnounceHostRequest) ProtoReflect() protoreflect.Message
func (*AnnounceHostRequest) Reset ¶ added in v1.2.5
func (x *AnnounceHostRequest) Reset()
func (*AnnounceHostRequest) String ¶ added in v1.2.5
func (x *AnnounceHostRequest) String() string
func (*AnnounceHostRequest) Validate ¶ added in v1.2.5
func (m *AnnounceHostRequest) Validate() error
Validate checks the field values on AnnounceHostRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*AnnounceHostRequest) ValidateAll ¶ added in v1.2.5
func (m *AnnounceHostRequest) ValidateAll() error
ValidateAll checks the field values on AnnounceHostRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in AnnounceHostRequestMultiError, or nil if none found.
type AnnounceHostRequestMultiError ¶ added in v1.2.5
type AnnounceHostRequestMultiError []error
AnnounceHostRequestMultiError is an error wrapping multiple validation errors returned by AnnounceHostRequest.ValidateAll() if the designated constraints aren't met.
func (AnnounceHostRequestMultiError) AllErrors ¶ added in v1.2.5
func (m AnnounceHostRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (AnnounceHostRequestMultiError) Error ¶ added in v1.2.5
func (m AnnounceHostRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type AnnounceHostRequestValidationError ¶ added in v1.2.5
type AnnounceHostRequestValidationError struct {
// contains filtered or unexported fields
}
AnnounceHostRequestValidationError is the validation error returned by AnnounceHostRequest.Validate if the designated constraints aren't met.
func (AnnounceHostRequestValidationError) Cause ¶ added in v1.2.5
func (e AnnounceHostRequestValidationError) Cause() error
Cause function returns cause value.
func (AnnounceHostRequestValidationError) Error ¶ added in v1.2.5
func (e AnnounceHostRequestValidationError) Error() string
Error satisfies the builtin error interface
func (AnnounceHostRequestValidationError) ErrorName ¶ added in v1.2.5
func (e AnnounceHostRequestValidationError) ErrorName() string
ErrorName returns error name.
func (AnnounceHostRequestValidationError) Field ¶ added in v1.2.5
func (e AnnounceHostRequestValidationError) Field() string
Field function returns field value.
func (AnnounceHostRequestValidationError) Key ¶ added in v1.2.5
func (e AnnounceHostRequestValidationError) Key() bool
Key function returns key value.
func (AnnounceHostRequestValidationError) Reason ¶ added in v1.2.5
func (e AnnounceHostRequestValidationError) Reason() string
Reason function returns reason value.
type AnnounceTaskRequest ¶
type AnnounceTaskRequest struct { // Task id. TaskId string `protobuf:"bytes,1,opt,name=task_id,json=taskId,proto3" json:"task_id,omitempty"` // Download url. Url string `protobuf:"bytes,2,opt,name=url,proto3" json:"url,omitempty"` // URL meta info. UrlMeta *v1.UrlMeta `protobuf:"bytes,3,opt,name=url_meta,json=urlMeta,proto3" json:"url_meta,omitempty"` // Peer host info. PeerHost *PeerHost `protobuf:"bytes,4,opt,name=peer_host,json=peerHost,proto3" json:"peer_host,omitempty"` // Task piece info. PiecePacket *v1.PiecePacket `protobuf:"bytes,5,opt,name=piece_packet,json=piecePacket,proto3" json:"piece_packet,omitempty"` // Task type. TaskType v1.TaskType `protobuf:"varint,6,opt,name=task_type,json=taskType,proto3,enum=common.TaskType" json:"task_type,omitempty"` // contains filtered or unexported fields }
AnnounceTaskRequest represents request of AnnounceTask.
func (*AnnounceTaskRequest) Descriptor
deprecated
func (*AnnounceTaskRequest) Descriptor() ([]byte, []int)
Deprecated: Use AnnounceTaskRequest.ProtoReflect.Descriptor instead.
func (*AnnounceTaskRequest) GetPeerHost ¶
func (x *AnnounceTaskRequest) GetPeerHost() *PeerHost
func (*AnnounceTaskRequest) GetPiecePacket ¶
func (x *AnnounceTaskRequest) GetPiecePacket() *v1.PiecePacket
func (*AnnounceTaskRequest) GetTaskId ¶
func (x *AnnounceTaskRequest) GetTaskId() string
func (*AnnounceTaskRequest) GetTaskType ¶
func (x *AnnounceTaskRequest) GetTaskType() v1.TaskType
func (*AnnounceTaskRequest) GetUrl ¶
func (x *AnnounceTaskRequest) GetUrl() string
func (*AnnounceTaskRequest) GetUrlMeta ¶
func (x *AnnounceTaskRequest) GetUrlMeta() *v1.UrlMeta
func (*AnnounceTaskRequest) ProtoMessage ¶
func (*AnnounceTaskRequest) ProtoMessage()
func (*AnnounceTaskRequest) ProtoReflect ¶
func (x *AnnounceTaskRequest) ProtoReflect() protoreflect.Message
func (*AnnounceTaskRequest) Reset ¶
func (x *AnnounceTaskRequest) Reset()
func (*AnnounceTaskRequest) String ¶
func (x *AnnounceTaskRequest) String() string
func (*AnnounceTaskRequest) Validate ¶
func (m *AnnounceTaskRequest) Validate() error
Validate checks the field values on AnnounceTaskRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*AnnounceTaskRequest) ValidateAll ¶
func (m *AnnounceTaskRequest) ValidateAll() error
ValidateAll checks the field values on AnnounceTaskRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in AnnounceTaskRequestMultiError, or nil if none found.
type AnnounceTaskRequestMultiError ¶
type AnnounceTaskRequestMultiError []error
AnnounceTaskRequestMultiError is an error wrapping multiple validation errors returned by AnnounceTaskRequest.ValidateAll() if the designated constraints aren't met.
func (AnnounceTaskRequestMultiError) AllErrors ¶
func (m AnnounceTaskRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (AnnounceTaskRequestMultiError) Error ¶
func (m AnnounceTaskRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type AnnounceTaskRequestValidationError ¶
type AnnounceTaskRequestValidationError struct {
// contains filtered or unexported fields
}
AnnounceTaskRequestValidationError is the validation error returned by AnnounceTaskRequest.Validate if the designated constraints aren't met.
func (AnnounceTaskRequestValidationError) Cause ¶
func (e AnnounceTaskRequestValidationError) Cause() error
Cause function returns cause value.
func (AnnounceTaskRequestValidationError) Error ¶
func (e AnnounceTaskRequestValidationError) Error() string
Error satisfies the builtin error interface
func (AnnounceTaskRequestValidationError) ErrorName ¶
func (e AnnounceTaskRequestValidationError) ErrorName() string
ErrorName returns error name.
func (AnnounceTaskRequestValidationError) Field ¶
func (e AnnounceTaskRequestValidationError) Field() string
Field function returns field value.
func (AnnounceTaskRequestValidationError) Key ¶
func (e AnnounceTaskRequestValidationError) Key() bool
Key function returns key value.
func (AnnounceTaskRequestValidationError) Reason ¶
func (e AnnounceTaskRequestValidationError) Reason() string
Reason function returns reason value.
type Build ¶ added in v1.2.5
type Build struct { // Git version. GitVersion string `protobuf:"bytes,1,opt,name=git_version,json=gitVersion,proto3" json:"git_version,omitempty"` // Git commit. GitCommit string `protobuf:"bytes,2,opt,name=git_commit,json=gitCommit,proto3" json:"git_commit,omitempty"` // Golang version. GoVersion string `protobuf:"bytes,3,opt,name=go_version,json=goVersion,proto3" json:"go_version,omitempty"` // Build platform. Platform string `protobuf:"bytes,4,opt,name=platform,proto3" json:"platform,omitempty"` // contains filtered or unexported fields }
Build information.
func (*Build) Descriptor
deprecated
added in
v1.2.5
func (*Build) GetGitCommit ¶ added in v1.2.5
func (*Build) GetGitVersion ¶ added in v1.2.5
func (*Build) GetGoVersion ¶ added in v1.2.5
func (*Build) GetPlatform ¶ added in v1.2.5
func (*Build) ProtoMessage ¶ added in v1.2.5
func (*Build) ProtoMessage()
func (*Build) ProtoReflect ¶ added in v1.2.5
func (x *Build) ProtoReflect() protoreflect.Message
func (*Build) Validate ¶ added in v1.2.5
Validate checks the field values on Build with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*Build) ValidateAll ¶ added in v1.2.5
ValidateAll checks the field values on Build with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in BuildMultiError, or nil if none found.
type BuildMultiError ¶ added in v1.2.5
type BuildMultiError []error
BuildMultiError is an error wrapping multiple validation errors returned by Build.ValidateAll() if the designated constraints aren't met.
func (BuildMultiError) AllErrors ¶ added in v1.2.5
func (m BuildMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (BuildMultiError) Error ¶ added in v1.2.5
func (m BuildMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type BuildValidationError ¶ added in v1.2.5
type BuildValidationError struct {
// contains filtered or unexported fields
}
BuildValidationError is the validation error returned by Build.Validate if the designated constraints aren't met.
func (BuildValidationError) Cause ¶ added in v1.2.5
func (e BuildValidationError) Cause() error
Cause function returns cause value.
func (BuildValidationError) Error ¶ added in v1.2.5
func (e BuildValidationError) Error() string
Error satisfies the builtin error interface
func (BuildValidationError) ErrorName ¶ added in v1.2.5
func (e BuildValidationError) ErrorName() string
ErrorName returns error name.
func (BuildValidationError) Field ¶ added in v1.2.5
func (e BuildValidationError) Field() string
Field function returns field value.
func (BuildValidationError) Key ¶ added in v1.2.5
func (e BuildValidationError) Key() bool
Key function returns key value.
func (BuildValidationError) Reason ¶ added in v1.2.5
func (e BuildValidationError) Reason() string
Reason function returns reason value.
type CPU ¶ added in v1.2.5
type CPU struct { // Number of logical cores in the system. LogicalCount uint32 `protobuf:"varint,1,opt,name=logical_count,json=logicalCount,proto3" json:"logical_count,omitempty"` // Number of physical cores in the system PhysicalCount uint32 `protobuf:"varint,2,opt,name=physical_count,json=physicalCount,proto3" json:"physical_count,omitempty"` // Percent calculates the percentage of cpu used. Percent float64 `protobuf:"fixed64,3,opt,name=percent,proto3" json:"percent,omitempty"` // Calculates the percentage of cpu used by process. ProcessPercent float64 `protobuf:"fixed64,4,opt,name=process_percent,json=processPercent,proto3" json:"process_percent,omitempty"` // CPUTimes contains the amounts of time the CPU has spent performing different kinds of work. Times *CPUTimes `protobuf:"bytes,5,opt,name=times,proto3" json:"times,omitempty"` // contains filtered or unexported fields }
CPU Stat.
func (*CPU) Descriptor
deprecated
added in
v1.2.5
func (*CPU) GetLogicalCount ¶ added in v1.2.5
func (*CPU) GetPercent ¶ added in v1.2.5
func (*CPU) GetPhysicalCount ¶ added in v1.2.5
func (*CPU) GetProcessPercent ¶ added in v1.2.5
func (*CPU) ProtoMessage ¶ added in v1.2.5
func (*CPU) ProtoMessage()
func (*CPU) ProtoReflect ¶ added in v1.2.5
func (x *CPU) ProtoReflect() protoreflect.Message
func (*CPU) Validate ¶ added in v1.2.5
Validate checks the field values on CPU with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*CPU) ValidateAll ¶ added in v1.2.5
ValidateAll checks the field values on CPU with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in CPUMultiError, or nil if none found.
type CPUMultiError ¶ added in v1.2.5
type CPUMultiError []error
CPUMultiError is an error wrapping multiple validation errors returned by CPU.ValidateAll() if the designated constraints aren't met.
func (CPUMultiError) AllErrors ¶ added in v1.2.5
func (m CPUMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (CPUMultiError) Error ¶ added in v1.2.5
func (m CPUMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type CPUTimes ¶ added in v1.2.5
type CPUTimes struct { // CPU time of user. User float64 `protobuf:"fixed64,1,opt,name=user,proto3" json:"user,omitempty"` // CPU time of system. System float64 `protobuf:"fixed64,2,opt,name=system,proto3" json:"system,omitempty"` // CPU time of idle. Idle float64 `protobuf:"fixed64,3,opt,name=idle,proto3" json:"idle,omitempty"` // CPU time of nice. Nice float64 `protobuf:"fixed64,4,opt,name=nice,proto3" json:"nice,omitempty"` // CPU time of iowait. Iowait float64 `protobuf:"fixed64,5,opt,name=iowait,proto3" json:"iowait,omitempty"` // CPU time of irq. Irq float64 `protobuf:"fixed64,6,opt,name=irq,proto3" json:"irq,omitempty"` // CPU time of softirq. Softirq float64 `protobuf:"fixed64,7,opt,name=softirq,proto3" json:"softirq,omitempty"` // CPU time of steal. Steal float64 `protobuf:"fixed64,8,opt,name=steal,proto3" json:"steal,omitempty"` // CPU time of guest. Guest float64 `protobuf:"fixed64,9,opt,name=guest,proto3" json:"guest,omitempty"` // CPU time of guest nice. GuestNice float64 `protobuf:"fixed64,10,opt,name=guest_nice,json=guestNice,proto3" json:"guest_nice,omitempty"` // contains filtered or unexported fields }
CPUTimes contains the amounts of time the CPU has spent performing different kinds of work. Time units are in seconds.
func (*CPUTimes) Descriptor
deprecated
added in
v1.2.5
func (*CPUTimes) GetGuestNice ¶ added in v1.2.5
func (*CPUTimes) GetSoftirq ¶ added in v1.2.5
func (*CPUTimes) ProtoMessage ¶ added in v1.2.5
func (*CPUTimes) ProtoMessage()
func (*CPUTimes) ProtoReflect ¶ added in v1.2.5
func (x *CPUTimes) ProtoReflect() protoreflect.Message
func (*CPUTimes) Validate ¶ added in v1.2.5
Validate checks the field values on CPUTimes with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*CPUTimes) ValidateAll ¶ added in v1.2.5
ValidateAll checks the field values on CPUTimes with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in CPUTimesMultiError, or nil if none found.
type CPUTimesMultiError ¶ added in v1.2.5
type CPUTimesMultiError []error
CPUTimesMultiError is an error wrapping multiple validation errors returned by CPUTimes.ValidateAll() if the designated constraints aren't met.
func (CPUTimesMultiError) AllErrors ¶ added in v1.2.5
func (m CPUTimesMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (CPUTimesMultiError) Error ¶ added in v1.2.5
func (m CPUTimesMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type CPUTimesValidationError ¶ added in v1.2.5
type CPUTimesValidationError struct {
// contains filtered or unexported fields
}
CPUTimesValidationError is the validation error returned by CPUTimes.Validate if the designated constraints aren't met.
func (CPUTimesValidationError) Cause ¶ added in v1.2.5
func (e CPUTimesValidationError) Cause() error
Cause function returns cause value.
func (CPUTimesValidationError) Error ¶ added in v1.2.5
func (e CPUTimesValidationError) Error() string
Error satisfies the builtin error interface
func (CPUTimesValidationError) ErrorName ¶ added in v1.2.5
func (e CPUTimesValidationError) ErrorName() string
ErrorName returns error name.
func (CPUTimesValidationError) Field ¶ added in v1.2.5
func (e CPUTimesValidationError) Field() string
Field function returns field value.
func (CPUTimesValidationError) Key ¶ added in v1.2.5
func (e CPUTimesValidationError) Key() bool
Key function returns key value.
func (CPUTimesValidationError) Reason ¶ added in v1.2.5
func (e CPUTimesValidationError) Reason() string
Reason function returns reason value.
type CPUValidationError ¶ added in v1.2.5
type CPUValidationError struct {
// contains filtered or unexported fields
}
CPUValidationError is the validation error returned by CPU.Validate if the designated constraints aren't met.
func (CPUValidationError) Cause ¶ added in v1.2.5
func (e CPUValidationError) Cause() error
Cause function returns cause value.
func (CPUValidationError) Error ¶ added in v1.2.5
func (e CPUValidationError) Error() string
Error satisfies the builtin error interface
func (CPUValidationError) ErrorName ¶ added in v1.2.5
func (e CPUValidationError) ErrorName() string
ErrorName returns error name.
func (CPUValidationError) Field ¶ added in v1.2.5
func (e CPUValidationError) Field() string
Field function returns field value.
func (CPUValidationError) Key ¶ added in v1.2.5
func (e CPUValidationError) Key() bool
Key function returns key value.
func (CPUValidationError) Reason ¶ added in v1.2.5
func (e CPUValidationError) Reason() string
Reason function returns reason value.
type DeleteHostsRequest ¶ added in v1.4.8
type DeleteHostsRequest struct { // Hosts needs to be deleted. ProbesOfHosts []*ProbesOfHost `protobuf:"bytes,1,rep,name=probes_of_hosts,json=probesOfHosts,proto3" json:"probes_of_hosts,omitempty"` // contains filtered or unexported fields }
DeleteHostsRequest represents delete hosts request of SyncNetworkTopologyRequest.
func (*DeleteHostsRequest) Descriptor
deprecated
added in
v1.4.8
func (*DeleteHostsRequest) Descriptor() ([]byte, []int)
Deprecated: Use DeleteHostsRequest.ProtoReflect.Descriptor instead.
func (*DeleteHostsRequest) GetProbesOfHosts ¶ added in v1.4.8
func (x *DeleteHostsRequest) GetProbesOfHosts() []*ProbesOfHost
func (*DeleteHostsRequest) ProtoMessage ¶ added in v1.4.8
func (*DeleteHostsRequest) ProtoMessage()
func (*DeleteHostsRequest) ProtoReflect ¶ added in v1.4.8
func (x *DeleteHostsRequest) ProtoReflect() protoreflect.Message
func (*DeleteHostsRequest) Reset ¶ added in v1.4.8
func (x *DeleteHostsRequest) Reset()
func (*DeleteHostsRequest) String ¶ added in v1.4.8
func (x *DeleteHostsRequest) String() string
func (*DeleteHostsRequest) Validate ¶ added in v1.4.8
func (m *DeleteHostsRequest) Validate() error
Validate checks the field values on DeleteHostsRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*DeleteHostsRequest) ValidateAll ¶ added in v1.4.8
func (m *DeleteHostsRequest) ValidateAll() error
ValidateAll checks the field values on DeleteHostsRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in DeleteHostsRequestMultiError, or nil if none found.
type DeleteHostsRequestMultiError ¶ added in v1.4.8
type DeleteHostsRequestMultiError []error
DeleteHostsRequestMultiError is an error wrapping multiple validation errors returned by DeleteHostsRequest.ValidateAll() if the designated constraints aren't met.
func (DeleteHostsRequestMultiError) AllErrors ¶ added in v1.4.8
func (m DeleteHostsRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (DeleteHostsRequestMultiError) Error ¶ added in v1.4.8
func (m DeleteHostsRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type DeleteHostsRequestValidationError ¶ added in v1.4.8
type DeleteHostsRequestValidationError struct {
// contains filtered or unexported fields
}
DeleteHostsRequestValidationError is the validation error returned by DeleteHostsRequest.Validate if the designated constraints aren't met.
func (DeleteHostsRequestValidationError) Cause ¶ added in v1.4.8
func (e DeleteHostsRequestValidationError) Cause() error
Cause function returns cause value.
func (DeleteHostsRequestValidationError) Error ¶ added in v1.4.8
func (e DeleteHostsRequestValidationError) Error() string
Error satisfies the builtin error interface
func (DeleteHostsRequestValidationError) ErrorName ¶ added in v1.4.8
func (e DeleteHostsRequestValidationError) ErrorName() string
ErrorName returns error name.
func (DeleteHostsRequestValidationError) Field ¶ added in v1.4.8
func (e DeleteHostsRequestValidationError) Field() string
Field function returns field value.
func (DeleteHostsRequestValidationError) Key ¶ added in v1.4.8
func (e DeleteHostsRequestValidationError) Key() bool
Key function returns key value.
func (DeleteHostsRequestValidationError) Reason ¶ added in v1.4.8
func (e DeleteHostsRequestValidationError) Reason() string
Reason function returns reason value.
type Disk ¶ added in v1.2.5
type Disk struct { // Total amount of disk on the data path of dragonfly. Total uint64 `protobuf:"varint,1,opt,name=total,proto3" json:"total,omitempty"` // Free amount of disk on the data path of dragonfly. Free uint64 `protobuf:"varint,2,opt,name=free,proto3" json:"free,omitempty"` // Used amount of disk on the data path of dragonfly. Used uint64 `protobuf:"varint,3,opt,name=used,proto3" json:"used,omitempty"` // Used percent of disk on the data path of dragonfly directory. UsedPercent float64 `protobuf:"fixed64,4,opt,name=used_percent,json=usedPercent,proto3" json:"used_percent,omitempty"` // Total amount of indoes on the data path of dragonfly directory. InodesTotal uint64 `protobuf:"varint,5,opt,name=inodes_total,json=inodesTotal,proto3" json:"inodes_total,omitempty"` // Used amount of indoes on the data path of dragonfly directory. InodesUsed uint64 `protobuf:"varint,6,opt,name=inodes_used,json=inodesUsed,proto3" json:"inodes_used,omitempty"` // Free amount of indoes on the data path of dragonfly directory. InodesFree uint64 `protobuf:"varint,7,opt,name=inodes_free,json=inodesFree,proto3" json:"inodes_free,omitempty"` // Used percent of indoes on the data path of dragonfly directory. InodesUsedPercent float64 `protobuf:"fixed64,8,opt,name=inodes_used_percent,json=inodesUsedPercent,proto3" json:"inodes_used_percent,omitempty"` // contains filtered or unexported fields }
Disk Stat.
func (*Disk) Descriptor
deprecated
added in
v1.2.5
func (*Disk) GetInodesFree ¶ added in v1.2.5
func (*Disk) GetInodesTotal ¶ added in v1.2.5
func (*Disk) GetInodesUsed ¶ added in v1.2.5
func (*Disk) GetInodesUsedPercent ¶ added in v1.2.5
func (*Disk) GetUsedPercent ¶ added in v1.2.5
func (*Disk) ProtoMessage ¶ added in v1.2.5
func (*Disk) ProtoMessage()
func (*Disk) ProtoReflect ¶ added in v1.2.5
func (x *Disk) ProtoReflect() protoreflect.Message
func (*Disk) Validate ¶ added in v1.2.5
Validate checks the field values on Disk with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*Disk) ValidateAll ¶ added in v1.2.5
ValidateAll checks the field values on Disk with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in DiskMultiError, or nil if none found.
type DiskMultiError ¶ added in v1.2.5
type DiskMultiError []error
DiskMultiError is an error wrapping multiple validation errors returned by Disk.ValidateAll() if the designated constraints aren't met.
func (DiskMultiError) AllErrors ¶ added in v1.2.5
func (m DiskMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (DiskMultiError) Error ¶ added in v1.2.5
func (m DiskMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type DiskValidationError ¶ added in v1.2.5
type DiskValidationError struct {
// contains filtered or unexported fields
}
DiskValidationError is the validation error returned by Disk.Validate if the designated constraints aren't met.
func (DiskValidationError) Cause ¶ added in v1.2.5
func (e DiskValidationError) Cause() error
Cause function returns cause value.
func (DiskValidationError) Error ¶ added in v1.2.5
func (e DiskValidationError) Error() string
Error satisfies the builtin error interface
func (DiskValidationError) ErrorName ¶ added in v1.2.5
func (e DiskValidationError) ErrorName() string
ErrorName returns error name.
func (DiskValidationError) Field ¶ added in v1.2.5
func (e DiskValidationError) Field() string
Field function returns field value.
func (DiskValidationError) Key ¶ added in v1.2.5
func (e DiskValidationError) Key() bool
Key function returns key value.
func (DiskValidationError) Reason ¶ added in v1.2.5
func (e DiskValidationError) Reason() string
Reason function returns reason value.
type LeaveHostRequest ¶ added in v1.2.2
type LeaveHostRequest struct { // Host id. Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` // contains filtered or unexported fields }
LeaveHostRequest represents request of LeaveHost.
func (*LeaveHostRequest) Descriptor
deprecated
added in
v1.2.2
func (*LeaveHostRequest) Descriptor() ([]byte, []int)
Deprecated: Use LeaveHostRequest.ProtoReflect.Descriptor instead.
func (*LeaveHostRequest) GetId ¶ added in v1.2.2
func (x *LeaveHostRequest) GetId() string
func (*LeaveHostRequest) ProtoMessage ¶ added in v1.2.2
func (*LeaveHostRequest) ProtoMessage()
func (*LeaveHostRequest) ProtoReflect ¶ added in v1.2.2
func (x *LeaveHostRequest) ProtoReflect() protoreflect.Message
func (*LeaveHostRequest) Reset ¶ added in v1.2.2
func (x *LeaveHostRequest) Reset()
func (*LeaveHostRequest) String ¶ added in v1.2.2
func (x *LeaveHostRequest) String() string
func (*LeaveHostRequest) Validate ¶ added in v1.2.2
func (m *LeaveHostRequest) Validate() error
Validate checks the field values on LeaveHostRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*LeaveHostRequest) ValidateAll ¶ added in v1.2.2
func (m *LeaveHostRequest) ValidateAll() error
ValidateAll checks the field values on LeaveHostRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in LeaveHostRequestMultiError, or nil if none found.
type LeaveHostRequestMultiError ¶ added in v1.2.2
type LeaveHostRequestMultiError []error
LeaveHostRequestMultiError is an error wrapping multiple validation errors returned by LeaveHostRequest.ValidateAll() if the designated constraints aren't met.
func (LeaveHostRequestMultiError) AllErrors ¶ added in v1.2.2
func (m LeaveHostRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (LeaveHostRequestMultiError) Error ¶ added in v1.2.2
func (m LeaveHostRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type LeaveHostRequestValidationError ¶ added in v1.2.2
type LeaveHostRequestValidationError struct {
// contains filtered or unexported fields
}
LeaveHostRequestValidationError is the validation error returned by LeaveHostRequest.Validate if the designated constraints aren't met.
func (LeaveHostRequestValidationError) Cause ¶ added in v1.2.2
func (e LeaveHostRequestValidationError) Cause() error
Cause function returns cause value.
func (LeaveHostRequestValidationError) Error ¶ added in v1.2.2
func (e LeaveHostRequestValidationError) Error() string
Error satisfies the builtin error interface
func (LeaveHostRequestValidationError) ErrorName ¶ added in v1.2.2
func (e LeaveHostRequestValidationError) ErrorName() string
ErrorName returns error name.
func (LeaveHostRequestValidationError) Field ¶ added in v1.2.2
func (e LeaveHostRequestValidationError) Field() string
Field function returns field value.
func (LeaveHostRequestValidationError) Key ¶ added in v1.2.2
func (e LeaveHostRequestValidationError) Key() bool
Key function returns key value.
func (LeaveHostRequestValidationError) Reason ¶ added in v1.2.2
func (e LeaveHostRequestValidationError) Reason() string
Reason function returns reason value.
type Memory ¶ added in v1.2.5
type Memory struct { // Total amount of RAM on this system. Total uint64 `protobuf:"varint,1,opt,name=total,proto3" json:"total,omitempty"` // RAM available for programs to allocate. Available uint64 `protobuf:"varint,2,opt,name=available,proto3" json:"available,omitempty"` // RAM used by programs. Used uint64 `protobuf:"varint,3,opt,name=used,proto3" json:"used,omitempty"` // Percentage of RAM used by programs. UsedPercent float64 `protobuf:"fixed64,4,opt,name=used_percent,json=usedPercent,proto3" json:"used_percent,omitempty"` // Calculates the percentage of memory used by process. ProcessUsedPercent float64 `protobuf:"fixed64,5,opt,name=process_used_percent,json=processUsedPercent,proto3" json:"process_used_percent,omitempty"` // This is the kernel's notion of free memory. Free uint64 `protobuf:"varint,6,opt,name=free,proto3" json:"free,omitempty"` // contains filtered or unexported fields }
Memory Stat.
func (*Memory) Descriptor
deprecated
added in
v1.2.5
func (*Memory) GetAvailable ¶ added in v1.2.5
func (*Memory) GetProcessUsedPercent ¶ added in v1.2.5
func (*Memory) GetUsedPercent ¶ added in v1.2.5
func (*Memory) ProtoMessage ¶ added in v1.2.5
func (*Memory) ProtoMessage()
func (*Memory) ProtoReflect ¶ added in v1.2.5
func (x *Memory) ProtoReflect() protoreflect.Message
func (*Memory) Validate ¶ added in v1.2.5
Validate checks the field values on Memory with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*Memory) ValidateAll ¶ added in v1.2.5
ValidateAll checks the field values on Memory with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in MemoryMultiError, or nil if none found.
type MemoryMultiError ¶ added in v1.2.5
type MemoryMultiError []error
MemoryMultiError is an error wrapping multiple validation errors returned by Memory.ValidateAll() if the designated constraints aren't met.
func (MemoryMultiError) AllErrors ¶ added in v1.2.5
func (m MemoryMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (MemoryMultiError) Error ¶ added in v1.2.5
func (m MemoryMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type MemoryValidationError ¶ added in v1.2.5
type MemoryValidationError struct {
// contains filtered or unexported fields
}
MemoryValidationError is the validation error returned by Memory.Validate if the designated constraints aren't met.
func (MemoryValidationError) Cause ¶ added in v1.2.5
func (e MemoryValidationError) Cause() error
Cause function returns cause value.
func (MemoryValidationError) Error ¶ added in v1.2.5
func (e MemoryValidationError) Error() string
Error satisfies the builtin error interface
func (MemoryValidationError) ErrorName ¶ added in v1.2.5
func (e MemoryValidationError) ErrorName() string
ErrorName returns error name.
func (MemoryValidationError) Field ¶ added in v1.2.5
func (e MemoryValidationError) Field() string
Field function returns field value.
func (MemoryValidationError) Key ¶ added in v1.2.5
func (e MemoryValidationError) Key() bool
Key function returns key value.
func (MemoryValidationError) Reason ¶ added in v1.2.5
func (e MemoryValidationError) Reason() string
Reason function returns reason value.
type Network ¶ added in v1.2.5
type Network struct { // Return count of tcp connections opened and status is ESTABLISHED. TcpConnectionCount uint32 `protobuf:"varint,1,opt,name=tcp_connection_count,json=tcpConnectionCount,proto3" json:"tcp_connection_count,omitempty"` // Return count of upload tcp connections opened and status is ESTABLISHED. UploadTcpConnectionCount uint32 `` /* 138-byte string literal not displayed */ // Security domain for network. SecurityDomain string `protobuf:"bytes,3,opt,name=security_domain,json=securityDomain,proto3" json:"security_domain,omitempty"` // Location path(area|country|province|city|...). Location string `protobuf:"bytes,4,opt,name=location,proto3" json:"location,omitempty"` // IDC where the peer host is located Idc string `protobuf:"bytes,5,opt,name=idc,proto3" json:"idc,omitempty"` // contains filtered or unexported fields }
Network Stat.
func (*Network) Descriptor
deprecated
added in
v1.2.5
func (*Network) GetLocation ¶ added in v1.2.5
func (*Network) GetSecurityDomain ¶ added in v1.2.5
func (*Network) GetTcpConnectionCount ¶ added in v1.2.5
func (*Network) GetUploadTcpConnectionCount ¶ added in v1.2.5
func (*Network) ProtoMessage ¶ added in v1.2.5
func (*Network) ProtoMessage()
func (*Network) ProtoReflect ¶ added in v1.2.5
func (x *Network) ProtoReflect() protoreflect.Message
func (*Network) Validate ¶ added in v1.2.5
Validate checks the field values on Network with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*Network) ValidateAll ¶ added in v1.2.5
ValidateAll checks the field values on Network with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in NetworkMultiError, or nil if none found.
type NetworkMultiError ¶ added in v1.2.5
type NetworkMultiError []error
NetworkMultiError is an error wrapping multiple validation errors returned by Network.ValidateAll() if the designated constraints aren't met.
func (NetworkMultiError) AllErrors ¶ added in v1.2.5
func (m NetworkMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (NetworkMultiError) Error ¶ added in v1.2.5
func (m NetworkMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type NetworkValidationError ¶ added in v1.2.5
type NetworkValidationError struct {
// contains filtered or unexported fields
}
NetworkValidationError is the validation error returned by Network.Validate if the designated constraints aren't met.
func (NetworkValidationError) Cause ¶ added in v1.2.5
func (e NetworkValidationError) Cause() error
Cause function returns cause value.
func (NetworkValidationError) Error ¶ added in v1.2.5
func (e NetworkValidationError) Error() string
Error satisfies the builtin error interface
func (NetworkValidationError) ErrorName ¶ added in v1.2.5
func (e NetworkValidationError) ErrorName() string
ErrorName returns error name.
func (NetworkValidationError) Field ¶ added in v1.2.5
func (e NetworkValidationError) Field() string
Field function returns field value.
func (NetworkValidationError) Key ¶ added in v1.2.5
func (e NetworkValidationError) Key() bool
Key function returns key value.
func (NetworkValidationError) Reason ¶ added in v1.2.5
func (e NetworkValidationError) Reason() string
Reason function returns reason value.
type PeerHost ¶
type PeerHost struct { // Peer host id. Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` // peer host ip Ip string `protobuf:"bytes,2,opt,name=ip,proto3" json:"ip,omitempty"` // Port of grpc service. RpcPort int32 `protobuf:"varint,3,opt,name=rpc_port,json=rpcPort,proto3" json:"rpc_port,omitempty"` // Port of download server. DownPort int32 `protobuf:"varint,4,opt,name=down_port,json=downPort,proto3" json:"down_port,omitempty"` // Peer hostname. Hostname string `protobuf:"bytes,5,opt,name=hostname,proto3" json:"hostname,omitempty"` // Security domain for network. SecurityDomain string `protobuf:"bytes,6,opt,name=security_domain,json=securityDomain,proto3" json:"security_domain,omitempty"` // Location path(area|country|province|city|...). Location string `protobuf:"bytes,7,opt,name=location,proto3" json:"location,omitempty"` // IDC where the peer host is located Idc string `protobuf:"bytes,8,opt,name=idc,proto3" json:"idc,omitempty"` // contains filtered or unexported fields }
PeerHost represents information of peer host.
func (*PeerHost) Descriptor
deprecated
func (*PeerHost) GetDownPort ¶
func (*PeerHost) GetHostname ¶ added in v1.8.1
func (*PeerHost) GetLocation ¶
func (*PeerHost) GetRpcPort ¶
func (*PeerHost) GetSecurityDomain ¶
func (*PeerHost) ProtoMessage ¶
func (*PeerHost) ProtoMessage()
func (*PeerHost) ProtoReflect ¶
func (x *PeerHost) ProtoReflect() protoreflect.Message
func (*PeerHost) Validate ¶
Validate checks the field values on PeerHost with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*PeerHost) ValidateAll ¶
ValidateAll checks the field values on PeerHost with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in PeerHostMultiError, or nil if none found.
type PeerHostMultiError ¶
type PeerHostMultiError []error
PeerHostMultiError is an error wrapping multiple validation errors returned by PeerHost.ValidateAll() if the designated constraints aren't met.
func (PeerHostMultiError) AllErrors ¶
func (m PeerHostMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (PeerHostMultiError) Error ¶
func (m PeerHostMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type PeerHostValidationError ¶
type PeerHostValidationError struct {
// contains filtered or unexported fields
}
PeerHostValidationError is the validation error returned by PeerHost.Validate if the designated constraints aren't met.
func (PeerHostValidationError) Cause ¶
func (e PeerHostValidationError) Cause() error
Cause function returns cause value.
func (PeerHostValidationError) Error ¶
func (e PeerHostValidationError) Error() string
Error satisfies the builtin error interface
func (PeerHostValidationError) ErrorName ¶
func (e PeerHostValidationError) ErrorName() string
ErrorName returns error name.
func (PeerHostValidationError) Field ¶
func (e PeerHostValidationError) Field() string
Field function returns field value.
func (PeerHostValidationError) Key ¶
func (e PeerHostValidationError) Key() bool
Key function returns key value.
func (PeerHostValidationError) Reason ¶
func (e PeerHostValidationError) Reason() string
Reason function returns reason value.
type PeerPacket ¶
type PeerPacket struct { // Task id. TaskId string `protobuf:"bytes,2,opt,name=task_id,json=taskId,proto3" json:"task_id,omitempty"` // Source peer id. SrcPid string `protobuf:"bytes,3,opt,name=src_pid,json=srcPid,proto3" json:"src_pid,omitempty"` // Concurrent downloading count from main peer. ParallelCount int32 `protobuf:"varint,4,opt,name=parallel_count,json=parallelCount,proto3" json:"parallel_count,omitempty"` // Main peer. MainPeer *PeerPacket_DestPeer `protobuf:"bytes,5,opt,name=main_peer,json=mainPeer,proto3" json:"main_peer,omitempty"` // Candidate peers. CandidatePeers []*PeerPacket_DestPeer `protobuf:"bytes,6,rep,name=candidate_peers,json=candidatePeers,proto3" json:"candidate_peers,omitempty"` // Result code. Code v1.Code `protobuf:"varint,7,opt,name=code,proto3,enum=common.Code" json:"code,omitempty"` // Error detail. // // Types that are assignable to Errordetails: // // *PeerPacket_SourceError Errordetails isPeerPacket_Errordetails `protobuf_oneof:"errordetails"` // contains filtered or unexported fields }
PeerPacket represents response of ReportPieceResult.
func (*PeerPacket) Descriptor
deprecated
func (*PeerPacket) Descriptor() ([]byte, []int)
Deprecated: Use PeerPacket.ProtoReflect.Descriptor instead.
func (*PeerPacket) GetCandidatePeers ¶
func (x *PeerPacket) GetCandidatePeers() []*PeerPacket_DestPeer
func (*PeerPacket) GetCode ¶
func (x *PeerPacket) GetCode() v1.Code
func (*PeerPacket) GetErrordetails ¶
func (m *PeerPacket) GetErrordetails() isPeerPacket_Errordetails
func (*PeerPacket) GetMainPeer ¶
func (x *PeerPacket) GetMainPeer() *PeerPacket_DestPeer
func (*PeerPacket) GetParallelCount ¶
func (x *PeerPacket) GetParallelCount() int32
func (*PeerPacket) GetSourceError ¶
func (x *PeerPacket) GetSourceError() *v11.SourceError
func (*PeerPacket) GetSrcPid ¶
func (x *PeerPacket) GetSrcPid() string
func (*PeerPacket) GetTaskId ¶
func (x *PeerPacket) GetTaskId() string
func (*PeerPacket) ProtoMessage ¶
func (*PeerPacket) ProtoMessage()
func (*PeerPacket) ProtoReflect ¶
func (x *PeerPacket) ProtoReflect() protoreflect.Message
func (*PeerPacket) Reset ¶
func (x *PeerPacket) Reset()
func (*PeerPacket) String ¶
func (x *PeerPacket) String() string
func (*PeerPacket) Validate ¶
func (m *PeerPacket) Validate() error
Validate checks the field values on PeerPacket with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*PeerPacket) ValidateAll ¶
func (m *PeerPacket) ValidateAll() error
ValidateAll checks the field values on PeerPacket with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in PeerPacketMultiError, or nil if none found.
type PeerPacketMultiError ¶
type PeerPacketMultiError []error
PeerPacketMultiError is an error wrapping multiple validation errors returned by PeerPacket.ValidateAll() if the designated constraints aren't met.
func (PeerPacketMultiError) AllErrors ¶
func (m PeerPacketMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (PeerPacketMultiError) Error ¶
func (m PeerPacketMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type PeerPacketValidationError ¶
type PeerPacketValidationError struct {
// contains filtered or unexported fields
}
PeerPacketValidationError is the validation error returned by PeerPacket.Validate if the designated constraints aren't met.
func (PeerPacketValidationError) Cause ¶
func (e PeerPacketValidationError) Cause() error
Cause function returns cause value.
func (PeerPacketValidationError) Error ¶
func (e PeerPacketValidationError) Error() string
Error satisfies the builtin error interface
func (PeerPacketValidationError) ErrorName ¶
func (e PeerPacketValidationError) ErrorName() string
ErrorName returns error name.
func (PeerPacketValidationError) Field ¶
func (e PeerPacketValidationError) Field() string
Field function returns field value.
func (PeerPacketValidationError) Key ¶
func (e PeerPacketValidationError) Key() bool
Key function returns key value.
func (PeerPacketValidationError) Reason ¶
func (e PeerPacketValidationError) Reason() string
Reason function returns reason value.
type PeerPacket_DestPeer ¶
type PeerPacket_DestPeer struct { // Destination ip. Ip string `protobuf:"bytes,1,opt,name=ip,proto3" json:"ip,omitempty"` // Port of grpc service. RpcPort int32 `protobuf:"varint,2,opt,name=rpc_port,json=rpcPort,proto3" json:"rpc_port,omitempty"` // Destination peer id. PeerId string `protobuf:"bytes,3,opt,name=peer_id,json=peerId,proto3" json:"peer_id,omitempty"` // contains filtered or unexported fields }
func (*PeerPacket_DestPeer) Descriptor
deprecated
func (*PeerPacket_DestPeer) Descriptor() ([]byte, []int)
Deprecated: Use PeerPacket_DestPeer.ProtoReflect.Descriptor instead.
func (*PeerPacket_DestPeer) GetIp ¶
func (x *PeerPacket_DestPeer) GetIp() string
func (*PeerPacket_DestPeer) GetPeerId ¶
func (x *PeerPacket_DestPeer) GetPeerId() string
func (*PeerPacket_DestPeer) GetRpcPort ¶
func (x *PeerPacket_DestPeer) GetRpcPort() int32
func (*PeerPacket_DestPeer) ProtoMessage ¶
func (*PeerPacket_DestPeer) ProtoMessage()
func (*PeerPacket_DestPeer) ProtoReflect ¶
func (x *PeerPacket_DestPeer) ProtoReflect() protoreflect.Message
func (*PeerPacket_DestPeer) Reset ¶
func (x *PeerPacket_DestPeer) Reset()
func (*PeerPacket_DestPeer) String ¶
func (x *PeerPacket_DestPeer) String() string
func (*PeerPacket_DestPeer) Validate ¶
func (m *PeerPacket_DestPeer) Validate() error
Validate checks the field values on PeerPacket_DestPeer with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*PeerPacket_DestPeer) ValidateAll ¶
func (m *PeerPacket_DestPeer) ValidateAll() error
ValidateAll checks the field values on PeerPacket_DestPeer with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in PeerPacket_DestPeerMultiError, or nil if none found.
type PeerPacket_DestPeerMultiError ¶
type PeerPacket_DestPeerMultiError []error
PeerPacket_DestPeerMultiError is an error wrapping multiple validation errors returned by PeerPacket_DestPeer.ValidateAll() if the designated constraints aren't met.
func (PeerPacket_DestPeerMultiError) AllErrors ¶
func (m PeerPacket_DestPeerMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (PeerPacket_DestPeerMultiError) Error ¶
func (m PeerPacket_DestPeerMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type PeerPacket_DestPeerValidationError ¶
type PeerPacket_DestPeerValidationError struct {
// contains filtered or unexported fields
}
PeerPacket_DestPeerValidationError is the validation error returned by PeerPacket_DestPeer.Validate if the designated constraints aren't met.
func (PeerPacket_DestPeerValidationError) Cause ¶
func (e PeerPacket_DestPeerValidationError) Cause() error
Cause function returns cause value.
func (PeerPacket_DestPeerValidationError) Error ¶
func (e PeerPacket_DestPeerValidationError) Error() string
Error satisfies the builtin error interface
func (PeerPacket_DestPeerValidationError) ErrorName ¶
func (e PeerPacket_DestPeerValidationError) ErrorName() string
ErrorName returns error name.
func (PeerPacket_DestPeerValidationError) Field ¶
func (e PeerPacket_DestPeerValidationError) Field() string
Field function returns field value.
func (PeerPacket_DestPeerValidationError) Key ¶
func (e PeerPacket_DestPeerValidationError) Key() bool
Key function returns key value.
func (PeerPacket_DestPeerValidationError) Reason ¶
func (e PeerPacket_DestPeerValidationError) Reason() string
Reason function returns reason value.
type PeerPacket_SourceError ¶
type PeerPacket_SourceError struct { // Source error. SourceError *v11.SourceError `protobuf:"bytes,8,opt,name=source_error,json=sourceError,proto3,oneof"` }
type PeerResult ¶
type PeerResult struct { // Task id. TaskId string `protobuf:"bytes,1,opt,name=task_id,json=taskId,proto3" json:"task_id,omitempty"` // Peer id. PeerId string `protobuf:"bytes,2,opt,name=peer_id,json=peerId,proto3" json:"peer_id,omitempty"` // Source host ip. SrcIp string `protobuf:"bytes,3,opt,name=src_ip,json=srcIp,proto3" json:"src_ip,omitempty"` // Security domain. SecurityDomain string `protobuf:"bytes,4,opt,name=security_domain,json=securityDomain,proto3" json:"security_domain,omitempty"` // IDC where the peer host is located Idc string `protobuf:"bytes,5,opt,name=idc,proto3" json:"idc,omitempty"` // Download url. Url string `protobuf:"bytes,6,opt,name=url,proto3" json:"url,omitempty"` // Total content length. ContentLength int64 `protobuf:"varint,7,opt,name=content_length,json=contentLength,proto3" json:"content_length,omitempty"` // Total network traffic. Traffic uint64 `protobuf:"varint,8,opt,name=traffic,proto3" json:"traffic,omitempty"` // Total cost time. Cost uint32 `protobuf:"varint,9,opt,name=cost,proto3" json:"cost,omitempty"` // Whether peer downloading file is successfully. Success bool `protobuf:"varint,10,opt,name=success,proto3" json:"success,omitempty"` // Result code. Code v1.Code `protobuf:"varint,11,opt,name=code,proto3,enum=common.Code" json:"code,omitempty"` // Task total piece count. TotalPieceCount int32 `protobuf:"varint,12,opt,name=total_piece_count,json=totalPieceCount,proto3" json:"total_piece_count,omitempty"` // Error detail. // // Types that are assignable to Errordetails: // // *PeerResult_SourceError Errordetails isPeerResult_Errordetails `protobuf_oneof:"errordetails"` // contains filtered or unexported fields }
PeerResult represents response of ReportPeerResult.
func (*PeerResult) Descriptor
deprecated
func (*PeerResult) Descriptor() ([]byte, []int)
Deprecated: Use PeerResult.ProtoReflect.Descriptor instead.
func (*PeerResult) GetCode ¶
func (x *PeerResult) GetCode() v1.Code
func (*PeerResult) GetContentLength ¶
func (x *PeerResult) GetContentLength() int64
func (*PeerResult) GetCost ¶
func (x *PeerResult) GetCost() uint32
func (*PeerResult) GetErrordetails ¶
func (m *PeerResult) GetErrordetails() isPeerResult_Errordetails
func (*PeerResult) GetIdc ¶
func (x *PeerResult) GetIdc() string
func (*PeerResult) GetPeerId ¶
func (x *PeerResult) GetPeerId() string
func (*PeerResult) GetSecurityDomain ¶
func (x *PeerResult) GetSecurityDomain() string
func (*PeerResult) GetSourceError ¶
func (x *PeerResult) GetSourceError() *v11.SourceError
func (*PeerResult) GetSrcIp ¶
func (x *PeerResult) GetSrcIp() string
func (*PeerResult) GetSuccess ¶
func (x *PeerResult) GetSuccess() bool
func (*PeerResult) GetTaskId ¶
func (x *PeerResult) GetTaskId() string
func (*PeerResult) GetTotalPieceCount ¶
func (x *PeerResult) GetTotalPieceCount() int32
func (*PeerResult) GetTraffic ¶
func (x *PeerResult) GetTraffic() uint64
func (*PeerResult) GetUrl ¶
func (x *PeerResult) GetUrl() string
func (*PeerResult) ProtoMessage ¶
func (*PeerResult) ProtoMessage()
func (*PeerResult) ProtoReflect ¶
func (x *PeerResult) ProtoReflect() protoreflect.Message
func (*PeerResult) Reset ¶
func (x *PeerResult) Reset()
func (*PeerResult) String ¶
func (x *PeerResult) String() string
func (*PeerResult) Validate ¶
func (m *PeerResult) Validate() error
Validate checks the field values on PeerResult with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*PeerResult) ValidateAll ¶
func (m *PeerResult) ValidateAll() error
ValidateAll checks the field values on PeerResult with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in PeerResultMultiError, or nil if none found.
type PeerResultMultiError ¶
type PeerResultMultiError []error
PeerResultMultiError is an error wrapping multiple validation errors returned by PeerResult.ValidateAll() if the designated constraints aren't met.
func (PeerResultMultiError) AllErrors ¶
func (m PeerResultMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (PeerResultMultiError) Error ¶
func (m PeerResultMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type PeerResultValidationError ¶
type PeerResultValidationError struct {
// contains filtered or unexported fields
}
PeerResultValidationError is the validation error returned by PeerResult.Validate if the designated constraints aren't met.
func (PeerResultValidationError) Cause ¶
func (e PeerResultValidationError) Cause() error
Cause function returns cause value.
func (PeerResultValidationError) Error ¶
func (e PeerResultValidationError) Error() string
Error satisfies the builtin error interface
func (PeerResultValidationError) ErrorName ¶
func (e PeerResultValidationError) ErrorName() string
ErrorName returns error name.
func (PeerResultValidationError) Field ¶
func (e PeerResultValidationError) Field() string
Field function returns field value.
func (PeerResultValidationError) Key ¶
func (e PeerResultValidationError) Key() bool
Key function returns key value.
func (PeerResultValidationError) Reason ¶
func (e PeerResultValidationError) Reason() string
Reason function returns reason value.
type PeerResult_SourceError ¶
type PeerResult_SourceError struct { // Source error. SourceError *v11.SourceError `protobuf:"bytes,13,opt,name=source_error,json=sourceError,proto3,oneof"` }
type PeerTarget ¶
type PeerTarget struct { // Task id. TaskId string `protobuf:"bytes,1,opt,name=task_id,json=taskId,proto3" json:"task_id,omitempty"` // Peer id. PeerId string `protobuf:"bytes,2,opt,name=peer_id,json=peerId,proto3" json:"peer_id,omitempty"` // contains filtered or unexported fields }
PeerTarget represents request of LeaveTask.
func (*PeerTarget) Descriptor
deprecated
func (*PeerTarget) Descriptor() ([]byte, []int)
Deprecated: Use PeerTarget.ProtoReflect.Descriptor instead.
func (*PeerTarget) GetPeerId ¶
func (x *PeerTarget) GetPeerId() string
func (*PeerTarget) GetTaskId ¶
func (x *PeerTarget) GetTaskId() string
func (*PeerTarget) ProtoMessage ¶
func (*PeerTarget) ProtoMessage()
func (*PeerTarget) ProtoReflect ¶
func (x *PeerTarget) ProtoReflect() protoreflect.Message
func (*PeerTarget) Reset ¶
func (x *PeerTarget) Reset()
func (*PeerTarget) String ¶
func (x *PeerTarget) String() string
func (*PeerTarget) Validate ¶
func (m *PeerTarget) Validate() error
Validate checks the field values on PeerTarget with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*PeerTarget) ValidateAll ¶
func (m *PeerTarget) ValidateAll() error
ValidateAll checks the field values on PeerTarget with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in PeerTargetMultiError, or nil if none found.
type PeerTargetMultiError ¶
type PeerTargetMultiError []error
PeerTargetMultiError is an error wrapping multiple validation errors returned by PeerTarget.ValidateAll() if the designated constraints aren't met.
func (PeerTargetMultiError) AllErrors ¶
func (m PeerTargetMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (PeerTargetMultiError) Error ¶
func (m PeerTargetMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type PeerTargetValidationError ¶
type PeerTargetValidationError struct {
// contains filtered or unexported fields
}
PeerTargetValidationError is the validation error returned by PeerTarget.Validate if the designated constraints aren't met.
func (PeerTargetValidationError) Cause ¶
func (e PeerTargetValidationError) Cause() error
Cause function returns cause value.
func (PeerTargetValidationError) Error ¶
func (e PeerTargetValidationError) Error() string
Error satisfies the builtin error interface
func (PeerTargetValidationError) ErrorName ¶
func (e PeerTargetValidationError) ErrorName() string
ErrorName returns error name.
func (PeerTargetValidationError) Field ¶
func (e PeerTargetValidationError) Field() string
Field function returns field value.
func (PeerTargetValidationError) Key ¶
func (e PeerTargetValidationError) Key() bool
Key function returns key value.
func (PeerTargetValidationError) Reason ¶
func (e PeerTargetValidationError) Reason() string
Reason function returns reason value.
type PeerTaskRequest ¶
type PeerTaskRequest struct { // Download url. Url string `protobuf:"bytes,1,opt,name=url,proto3" json:"url,omitempty"` // URL meta info. UrlMeta *v1.UrlMeta `protobuf:"bytes,2,opt,name=url_meta,json=urlMeta,proto3" json:"url_meta,omitempty"` // Peer id and it must be global uniqueness. PeerId string `protobuf:"bytes,3,opt,name=peer_id,json=peerId,proto3" json:"peer_id,omitempty"` // Peer host info. PeerHost *PeerHost `protobuf:"bytes,4,opt,name=peer_host,json=peerHost,proto3" json:"peer_host,omitempty"` // Whether this request is caused by migration. IsMigrating bool `protobuf:"varint,6,opt,name=is_migrating,json=isMigrating,proto3" json:"is_migrating,omitempty"` // Task id. TaskId string `protobuf:"bytes,8,opt,name=task_id,json=taskId,proto3" json:"task_id,omitempty"` // contains filtered or unexported fields }
PeerTaskRequest represents request of RegisterPeerTask.
func (*PeerTaskRequest) Descriptor
deprecated
func (*PeerTaskRequest) Descriptor() ([]byte, []int)
Deprecated: Use PeerTaskRequest.ProtoReflect.Descriptor instead.
func (*PeerTaskRequest) GetIsMigrating ¶
func (x *PeerTaskRequest) GetIsMigrating() bool
func (*PeerTaskRequest) GetPeerHost ¶
func (x *PeerTaskRequest) GetPeerHost() *PeerHost
func (*PeerTaskRequest) GetPeerId ¶
func (x *PeerTaskRequest) GetPeerId() string
func (*PeerTaskRequest) GetTaskId ¶
func (x *PeerTaskRequest) GetTaskId() string
func (*PeerTaskRequest) GetUrl ¶
func (x *PeerTaskRequest) GetUrl() string
func (*PeerTaskRequest) GetUrlMeta ¶
func (x *PeerTaskRequest) GetUrlMeta() *v1.UrlMeta
func (*PeerTaskRequest) ProtoMessage ¶
func (*PeerTaskRequest) ProtoMessage()
func (*PeerTaskRequest) ProtoReflect ¶
func (x *PeerTaskRequest) ProtoReflect() protoreflect.Message
func (*PeerTaskRequest) Reset ¶
func (x *PeerTaskRequest) Reset()
func (*PeerTaskRequest) String ¶
func (x *PeerTaskRequest) String() string
func (*PeerTaskRequest) Validate ¶
func (m *PeerTaskRequest) Validate() error
Validate checks the field values on PeerTaskRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*PeerTaskRequest) ValidateAll ¶
func (m *PeerTaskRequest) ValidateAll() error
ValidateAll checks the field values on PeerTaskRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in PeerTaskRequestMultiError, or nil if none found.
type PeerTaskRequestMultiError ¶
type PeerTaskRequestMultiError []error
PeerTaskRequestMultiError is an error wrapping multiple validation errors returned by PeerTaskRequest.ValidateAll() if the designated constraints aren't met.
func (PeerTaskRequestMultiError) AllErrors ¶
func (m PeerTaskRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (PeerTaskRequestMultiError) Error ¶
func (m PeerTaskRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type PeerTaskRequestValidationError ¶
type PeerTaskRequestValidationError struct {
// contains filtered or unexported fields
}
PeerTaskRequestValidationError is the validation error returned by PeerTaskRequest.Validate if the designated constraints aren't met.
func (PeerTaskRequestValidationError) Cause ¶
func (e PeerTaskRequestValidationError) Cause() error
Cause function returns cause value.
func (PeerTaskRequestValidationError) Error ¶
func (e PeerTaskRequestValidationError) Error() string
Error satisfies the builtin error interface
func (PeerTaskRequestValidationError) ErrorName ¶
func (e PeerTaskRequestValidationError) ErrorName() string
ErrorName returns error name.
func (PeerTaskRequestValidationError) Field ¶
func (e PeerTaskRequestValidationError) Field() string
Field function returns field value.
func (PeerTaskRequestValidationError) Key ¶
func (e PeerTaskRequestValidationError) Key() bool
Key function returns key value.
func (PeerTaskRequestValidationError) Reason ¶
func (e PeerTaskRequestValidationError) Reason() string
Reason function returns reason value.
type PieceResult ¶
type PieceResult struct { // Task id. TaskId string `protobuf:"bytes,1,opt,name=task_id,json=taskId,proto3" json:"task_id,omitempty"` // Source peer id. SrcPid string `protobuf:"bytes,2,opt,name=src_pid,json=srcPid,proto3" json:"src_pid,omitempty"` // Destination peer id. DstPid string `protobuf:"bytes,3,opt,name=dst_pid,json=dstPid,proto3" json:"dst_pid,omitempty"` // Piece info. PieceInfo *v1.PieceInfo `protobuf:"bytes,4,opt,name=piece_info,json=pieceInfo,proto3" json:"piece_info,omitempty"` // Begin time of the piece downloading. BeginTime uint64 `protobuf:"varint,5,opt,name=begin_time,json=beginTime,proto3" json:"begin_time,omitempty"` // End time of the piece downloading. EndTime uint64 `protobuf:"varint,6,opt,name=end_time,json=endTime,proto3" json:"end_time,omitempty"` // Whether the piece downloading is successfully. Success bool `protobuf:"varint,7,opt,name=success,proto3" json:"success,omitempty"` // Result code. Code v1.Code `protobuf:"varint,8,opt,name=code,proto3,enum=common.Code" json:"code,omitempty"` // Finished count. FinishedCount int32 `protobuf:"varint,10,opt,name=finished_count,json=finishedCount,proto3" json:"finished_count,omitempty"` // Task extend attribute, // only first success back source piece will carry extend attribute. ExtendAttribute *v1.ExtendAttribute `protobuf:"bytes,11,opt,name=extend_attribute,json=extendAttribute,proto3" json:"extend_attribute,omitempty"` // contains filtered or unexported fields }
PieceResult represents request of ReportPieceResult.
func (*PieceResult) Descriptor
deprecated
func (*PieceResult) Descriptor() ([]byte, []int)
Deprecated: Use PieceResult.ProtoReflect.Descriptor instead.
func (*PieceResult) GetBeginTime ¶
func (x *PieceResult) GetBeginTime() uint64
func (*PieceResult) GetCode ¶
func (x *PieceResult) GetCode() v1.Code
func (*PieceResult) GetDstPid ¶
func (x *PieceResult) GetDstPid() string
func (*PieceResult) GetEndTime ¶
func (x *PieceResult) GetEndTime() uint64
func (*PieceResult) GetExtendAttribute ¶
func (x *PieceResult) GetExtendAttribute() *v1.ExtendAttribute
func (*PieceResult) GetFinishedCount ¶
func (x *PieceResult) GetFinishedCount() int32
func (*PieceResult) GetPieceInfo ¶
func (x *PieceResult) GetPieceInfo() *v1.PieceInfo
func (*PieceResult) GetSrcPid ¶
func (x *PieceResult) GetSrcPid() string
func (*PieceResult) GetSuccess ¶
func (x *PieceResult) GetSuccess() bool
func (*PieceResult) GetTaskId ¶
func (x *PieceResult) GetTaskId() string
func (*PieceResult) ProtoMessage ¶
func (*PieceResult) ProtoMessage()
func (*PieceResult) ProtoReflect ¶
func (x *PieceResult) ProtoReflect() protoreflect.Message
func (*PieceResult) Reset ¶
func (x *PieceResult) Reset()
func (*PieceResult) String ¶
func (x *PieceResult) String() string
func (*PieceResult) Validate ¶
func (m *PieceResult) Validate() error
Validate checks the field values on PieceResult with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*PieceResult) ValidateAll ¶
func (m *PieceResult) ValidateAll() error
ValidateAll checks the field values on PieceResult with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in PieceResultMultiError, or nil if none found.
type PieceResultMultiError ¶
type PieceResultMultiError []error
PieceResultMultiError is an error wrapping multiple validation errors returned by PieceResult.ValidateAll() if the designated constraints aren't met.
func (PieceResultMultiError) AllErrors ¶
func (m PieceResultMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (PieceResultMultiError) Error ¶
func (m PieceResultMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type PieceResultValidationError ¶
type PieceResultValidationError struct {
// contains filtered or unexported fields
}
PieceResultValidationError is the validation error returned by PieceResult.Validate if the designated constraints aren't met.
func (PieceResultValidationError) Cause ¶
func (e PieceResultValidationError) Cause() error
Cause function returns cause value.
func (PieceResultValidationError) Error ¶
func (e PieceResultValidationError) Error() string
Error satisfies the builtin error interface
func (PieceResultValidationError) ErrorName ¶
func (e PieceResultValidationError) ErrorName() string
ErrorName returns error name.
func (PieceResultValidationError) Field ¶
func (e PieceResultValidationError) Field() string
Field function returns field value.
func (PieceResultValidationError) Key ¶
func (e PieceResultValidationError) Key() bool
Key function returns key value.
func (PieceResultValidationError) Reason ¶
func (e PieceResultValidationError) Reason() string
Reason function returns reason value.
type Probe ¶ added in v1.4.8
type Probe struct { // Host metadata. Host *v1.Host `protobuf:"bytes,1,opt,name=host,proto3" json:"host,omitempty"` // RTT is the round-trip time sent via this pinger. Rtt *durationpb.Duration `protobuf:"bytes,2,opt,name=rtt,proto3" json:"rtt,omitempty"` // Task update time. UpdatedAt *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty"` // contains filtered or unexported fields }
Probe information.
func (*Probe) Descriptor
deprecated
added in
v1.4.8
func (*Probe) GetRtt ¶ added in v1.4.8
func (x *Probe) GetRtt() *durationpb.Duration
func (*Probe) GetUpdatedAt ¶ added in v1.4.8
func (x *Probe) GetUpdatedAt() *timestamppb.Timestamp
func (*Probe) ProtoMessage ¶ added in v1.4.8
func (*Probe) ProtoMessage()
func (*Probe) ProtoReflect ¶ added in v1.4.8
func (x *Probe) ProtoReflect() protoreflect.Message
func (*Probe) Validate ¶ added in v1.4.8
Validate checks the field values on Probe with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*Probe) ValidateAll ¶ added in v1.4.8
ValidateAll checks the field values on Probe with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in ProbeMultiError, or nil if none found.
type ProbeMultiError ¶ added in v1.4.8
type ProbeMultiError []error
ProbeMultiError is an error wrapping multiple validation errors returned by Probe.ValidateAll() if the designated constraints aren't met.
func (ProbeMultiError) AllErrors ¶ added in v1.4.8
func (m ProbeMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (ProbeMultiError) Error ¶ added in v1.4.8
func (m ProbeMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type ProbeValidationError ¶ added in v1.4.8
type ProbeValidationError struct {
// contains filtered or unexported fields
}
ProbeValidationError is the validation error returned by Probe.Validate if the designated constraints aren't met.
func (ProbeValidationError) Cause ¶ added in v1.4.8
func (e ProbeValidationError) Cause() error
Cause function returns cause value.
func (ProbeValidationError) Error ¶ added in v1.4.8
func (e ProbeValidationError) Error() string
Error satisfies the builtin error interface
func (ProbeValidationError) ErrorName ¶ added in v1.4.8
func (e ProbeValidationError) ErrorName() string
ErrorName returns error name.
func (ProbeValidationError) Field ¶ added in v1.4.8
func (e ProbeValidationError) Field() string
Field function returns field value.
func (ProbeValidationError) Key ¶ added in v1.4.8
func (e ProbeValidationError) Key() bool
Key function returns key value.
func (ProbeValidationError) Reason ¶ added in v1.4.8
func (e ProbeValidationError) Reason() string
Reason function returns reason value.
type ProbesOfHost ¶ added in v1.4.8
type ProbesOfHost struct { // Host metadata. Host *v1.Host `protobuf:"bytes,1,opt,name=host,proto3" json:"host,omitempty"` // Probes information. Probes []*Probe `protobuf:"bytes,2,rep,name=probes,proto3" json:"probes,omitempty"` // contains filtered or unexported fields }
ProbesOfHost represents probes information of the host.
func (*ProbesOfHost) Descriptor
deprecated
added in
v1.4.8
func (*ProbesOfHost) Descriptor() ([]byte, []int)
Deprecated: Use ProbesOfHost.ProtoReflect.Descriptor instead.
func (*ProbesOfHost) GetHost ¶ added in v1.4.8
func (x *ProbesOfHost) GetHost() *v1.Host
func (*ProbesOfHost) GetProbes ¶ added in v1.4.8
func (x *ProbesOfHost) GetProbes() []*Probe
func (*ProbesOfHost) ProtoMessage ¶ added in v1.4.8
func (*ProbesOfHost) ProtoMessage()
func (*ProbesOfHost) ProtoReflect ¶ added in v1.4.8
func (x *ProbesOfHost) ProtoReflect() protoreflect.Message
func (*ProbesOfHost) Reset ¶ added in v1.4.8
func (x *ProbesOfHost) Reset()
func (*ProbesOfHost) String ¶ added in v1.4.8
func (x *ProbesOfHost) String() string
func (*ProbesOfHost) Validate ¶ added in v1.4.8
func (m *ProbesOfHost) Validate() error
Validate checks the field values on ProbesOfHost with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*ProbesOfHost) ValidateAll ¶ added in v1.4.8
func (m *ProbesOfHost) ValidateAll() error
ValidateAll checks the field values on ProbesOfHost with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in ProbesOfHostMultiError, or nil if none found.
type ProbesOfHostMultiError ¶ added in v1.4.8
type ProbesOfHostMultiError []error
ProbesOfHostMultiError is an error wrapping multiple validation errors returned by ProbesOfHost.ValidateAll() if the designated constraints aren't met.
func (ProbesOfHostMultiError) AllErrors ¶ added in v1.4.8
func (m ProbesOfHostMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (ProbesOfHostMultiError) Error ¶ added in v1.4.8
func (m ProbesOfHostMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type ProbesOfHostValidationError ¶ added in v1.4.8
type ProbesOfHostValidationError struct {
// contains filtered or unexported fields
}
ProbesOfHostValidationError is the validation error returned by ProbesOfHost.Validate if the designated constraints aren't met.
func (ProbesOfHostValidationError) Cause ¶ added in v1.4.8
func (e ProbesOfHostValidationError) Cause() error
Cause function returns cause value.
func (ProbesOfHostValidationError) Error ¶ added in v1.4.8
func (e ProbesOfHostValidationError) Error() string
Error satisfies the builtin error interface
func (ProbesOfHostValidationError) ErrorName ¶ added in v1.4.8
func (e ProbesOfHostValidationError) ErrorName() string
ErrorName returns error name.
func (ProbesOfHostValidationError) Field ¶ added in v1.4.8
func (e ProbesOfHostValidationError) Field() string
Field function returns field value.
func (ProbesOfHostValidationError) Key ¶ added in v1.4.8
func (e ProbesOfHostValidationError) Key() bool
Key function returns key value.
func (ProbesOfHostValidationError) Reason ¶ added in v1.4.8
func (e ProbesOfHostValidationError) Reason() string
Reason function returns reason value.
type RegisterResult ¶
type RegisterResult struct { // Task type. TaskType v1.TaskType `protobuf:"varint,1,opt,name=task_type,json=taskType,proto3,enum=common.TaskType" json:"task_type,omitempty"` // Task id TaskId string `protobuf:"bytes,2,opt,name=task_id,json=taskId,proto3" json:"task_id,omitempty"` // File size scope. SizeScope v1.SizeScope `protobuf:"varint,3,opt,name=size_scope,json=sizeScope,proto3,enum=common.SizeScope" json:"size_scope,omitempty"` // Download the only piece directly for small or tiny file. // // Types that are assignable to DirectPiece: // // *RegisterResult_SinglePiece // *RegisterResult_PieceContent DirectPiece isRegisterResult_DirectPiece `protobuf_oneof:"direct_piece"` // Task extend attribute, // only direct_piece will carry extend attribute. ExtendAttribute *v1.ExtendAttribute `protobuf:"bytes,6,opt,name=extend_attribute,json=extendAttribute,proto3" json:"extend_attribute,omitempty"` // contains filtered or unexported fields }
RegisterResult represents response of RegisterPeerTask.
func (*RegisterResult) Descriptor
deprecated
func (*RegisterResult) Descriptor() ([]byte, []int)
Deprecated: Use RegisterResult.ProtoReflect.Descriptor instead.
func (*RegisterResult) GetDirectPiece ¶
func (m *RegisterResult) GetDirectPiece() isRegisterResult_DirectPiece
func (*RegisterResult) GetExtendAttribute ¶
func (x *RegisterResult) GetExtendAttribute() *v1.ExtendAttribute
func (*RegisterResult) GetPieceContent ¶
func (x *RegisterResult) GetPieceContent() []byte
func (*RegisterResult) GetSinglePiece ¶
func (x *RegisterResult) GetSinglePiece() *SinglePiece
func (*RegisterResult) GetSizeScope ¶
func (x *RegisterResult) GetSizeScope() v1.SizeScope
func (*RegisterResult) GetTaskId ¶
func (x *RegisterResult) GetTaskId() string
func (*RegisterResult) GetTaskType ¶
func (x *RegisterResult) GetTaskType() v1.TaskType
func (*RegisterResult) ProtoMessage ¶
func (*RegisterResult) ProtoMessage()
func (*RegisterResult) ProtoReflect ¶
func (x *RegisterResult) ProtoReflect() protoreflect.Message
func (*RegisterResult) Reset ¶
func (x *RegisterResult) Reset()
func (*RegisterResult) String ¶
func (x *RegisterResult) String() string
func (*RegisterResult) Validate ¶
func (m *RegisterResult) Validate() error
Validate checks the field values on RegisterResult with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*RegisterResult) ValidateAll ¶
func (m *RegisterResult) ValidateAll() error
ValidateAll checks the field values on RegisterResult with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in RegisterResultMultiError, or nil if none found.
type RegisterResultMultiError ¶
type RegisterResultMultiError []error
RegisterResultMultiError is an error wrapping multiple validation errors returned by RegisterResult.ValidateAll() if the designated constraints aren't met.
func (RegisterResultMultiError) AllErrors ¶
func (m RegisterResultMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (RegisterResultMultiError) Error ¶
func (m RegisterResultMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type RegisterResultValidationError ¶
type RegisterResultValidationError struct {
// contains filtered or unexported fields
}
RegisterResultValidationError is the validation error returned by RegisterResult.Validate if the designated constraints aren't met.
func (RegisterResultValidationError) Cause ¶
func (e RegisterResultValidationError) Cause() error
Cause function returns cause value.
func (RegisterResultValidationError) Error ¶
func (e RegisterResultValidationError) Error() string
Error satisfies the builtin error interface
func (RegisterResultValidationError) ErrorName ¶
func (e RegisterResultValidationError) ErrorName() string
ErrorName returns error name.
func (RegisterResultValidationError) Field ¶
func (e RegisterResultValidationError) Field() string
Field function returns field value.
func (RegisterResultValidationError) Key ¶
func (e RegisterResultValidationError) Key() bool
Key function returns key value.
func (RegisterResultValidationError) Reason ¶
func (e RegisterResultValidationError) Reason() string
Reason function returns reason value.
type RegisterResult_PieceContent ¶
type RegisterResult_PieceContent struct { // Return task content when size scope is tiny. PieceContent []byte `protobuf:"bytes,5,opt,name=piece_content,json=pieceContent,proto3,oneof"` }
type RegisterResult_SinglePiece ¶
type RegisterResult_SinglePiece struct { // Return single piece info when size scope is small. SinglePiece *SinglePiece `protobuf:"bytes,4,opt,name=single_piece,json=singlePiece,proto3,oneof"` }
type SchedulerClient ¶
type SchedulerClient interface { // RegisterPeerTask registers a peer into task. RegisterPeerTask(ctx context.Context, in *PeerTaskRequest, opts ...grpc.CallOption) (*RegisterResult, error) // ReportPieceResult reports piece results and receives peer packets. ReportPieceResult(ctx context.Context, opts ...grpc.CallOption) (Scheduler_ReportPieceResultClient, error) // ReportPeerResult reports downloading result for the peer. ReportPeerResult(ctx context.Context, in *PeerResult, opts ...grpc.CallOption) (*emptypb.Empty, error) // A peer announces that it has the announced task to other peers. AnnounceTask(ctx context.Context, in *AnnounceTaskRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) // Checks if any peer has the given task. StatTask(ctx context.Context, in *StatTaskRequest, opts ...grpc.CallOption) (*Task, error) // LeaveTask makes the peer leaving from task. LeaveTask(ctx context.Context, in *PeerTarget, opts ...grpc.CallOption) (*emptypb.Empty, error) // AnnounceHost announces host to scheduler. AnnounceHost(ctx context.Context, in *AnnounceHostRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) // LeaveHost makes the peers leaving from host. LeaveHost(ctx context.Context, in *LeaveHostRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) // SyncProbes sync probes of the host. SyncProbes(ctx context.Context, opts ...grpc.CallOption) (Scheduler_SyncProbesClient, error) // SyncNetworkTopology sync network topology of the hosts. SyncNetworkTopology(ctx context.Context, opts ...grpc.CallOption) (Scheduler_SyncNetworkTopologyClient, error) }
SchedulerClient is the client API for Scheduler service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
func NewSchedulerClient ¶
func NewSchedulerClient(cc grpc.ClientConnInterface) SchedulerClient
type SchedulerServer ¶
type SchedulerServer interface { // RegisterPeerTask registers a peer into task. RegisterPeerTask(context.Context, *PeerTaskRequest) (*RegisterResult, error) // ReportPieceResult reports piece results and receives peer packets. ReportPieceResult(Scheduler_ReportPieceResultServer) error // ReportPeerResult reports downloading result for the peer. ReportPeerResult(context.Context, *PeerResult) (*emptypb.Empty, error) // A peer announces that it has the announced task to other peers. AnnounceTask(context.Context, *AnnounceTaskRequest) (*emptypb.Empty, error) // Checks if any peer has the given task. StatTask(context.Context, *StatTaskRequest) (*Task, error) // LeaveTask makes the peer leaving from task. LeaveTask(context.Context, *PeerTarget) (*emptypb.Empty, error) // AnnounceHost announces host to scheduler. AnnounceHost(context.Context, *AnnounceHostRequest) (*emptypb.Empty, error) // LeaveHost makes the peers leaving from host. LeaveHost(context.Context, *LeaveHostRequest) (*emptypb.Empty, error) // SyncProbes sync probes of the host. SyncProbes(Scheduler_SyncProbesServer) error // SyncNetworkTopology sync network topology of the hosts. SyncNetworkTopology(Scheduler_SyncNetworkTopologyServer) error }
SchedulerServer is the server API for Scheduler service. All implementations should embed UnimplementedSchedulerServer for forward compatibility
type Scheduler_ReportPieceResultClient ¶
type Scheduler_ReportPieceResultClient interface { Send(*PieceResult) error Recv() (*PeerPacket, error) grpc.ClientStream }
type Scheduler_ReportPieceResultServer ¶
type Scheduler_ReportPieceResultServer interface { Send(*PeerPacket) error Recv() (*PieceResult, error) grpc.ServerStream }
type Scheduler_SyncNetworkTopologyClient ¶ added in v1.4.8
type Scheduler_SyncNetworkTopologyClient interface { Send(*SyncNetworkTopologyRequest) error CloseAndRecv() (*emptypb.Empty, error) grpc.ClientStream }
type Scheduler_SyncNetworkTopologyServer ¶ added in v1.4.8
type Scheduler_SyncNetworkTopologyServer interface { SendAndClose(*emptypb.Empty) error Recv() (*SyncNetworkTopologyRequest, error) grpc.ServerStream }
type Scheduler_SyncProbesClient ¶ added in v1.4.8
type Scheduler_SyncProbesClient interface { Send(*SyncProbesRequest) error Recv() (*SyncProbesResponse, error) grpc.ClientStream }
type Scheduler_SyncProbesServer ¶ added in v1.4.8
type Scheduler_SyncProbesServer interface { Send(*SyncProbesResponse) error Recv() (*SyncProbesRequest, error) grpc.ServerStream }
type SinglePiece ¶
type SinglePiece struct { // Destination peer id. DstPid string `protobuf:"bytes,1,opt,name=dst_pid,json=dstPid,proto3" json:"dst_pid,omitempty"` // Destination download address. DstAddr string `protobuf:"bytes,2,opt,name=dst_addr,json=dstAddr,proto3" json:"dst_addr,omitempty"` // Piece info. PieceInfo *v1.PieceInfo `protobuf:"bytes,3,opt,name=piece_info,json=pieceInfo,proto3" json:"piece_info,omitempty"` // contains filtered or unexported fields }
SinglePiece represents information of single piece.
func (*SinglePiece) Descriptor
deprecated
func (*SinglePiece) Descriptor() ([]byte, []int)
Deprecated: Use SinglePiece.ProtoReflect.Descriptor instead.
func (*SinglePiece) GetDstAddr ¶
func (x *SinglePiece) GetDstAddr() string
func (*SinglePiece) GetDstPid ¶
func (x *SinglePiece) GetDstPid() string
func (*SinglePiece) GetPieceInfo ¶
func (x *SinglePiece) GetPieceInfo() *v1.PieceInfo
func (*SinglePiece) ProtoMessage ¶
func (*SinglePiece) ProtoMessage()
func (*SinglePiece) ProtoReflect ¶
func (x *SinglePiece) ProtoReflect() protoreflect.Message
func (*SinglePiece) Reset ¶
func (x *SinglePiece) Reset()
func (*SinglePiece) String ¶
func (x *SinglePiece) String() string
func (*SinglePiece) Validate ¶
func (m *SinglePiece) Validate() error
Validate checks the field values on SinglePiece with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*SinglePiece) ValidateAll ¶
func (m *SinglePiece) ValidateAll() error
ValidateAll checks the field values on SinglePiece with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in SinglePieceMultiError, or nil if none found.
type SinglePieceMultiError ¶
type SinglePieceMultiError []error
SinglePieceMultiError is an error wrapping multiple validation errors returned by SinglePiece.ValidateAll() if the designated constraints aren't met.
func (SinglePieceMultiError) AllErrors ¶
func (m SinglePieceMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (SinglePieceMultiError) Error ¶
func (m SinglePieceMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type SinglePieceValidationError ¶
type SinglePieceValidationError struct {
// contains filtered or unexported fields
}
SinglePieceValidationError is the validation error returned by SinglePiece.Validate if the designated constraints aren't met.
func (SinglePieceValidationError) Cause ¶
func (e SinglePieceValidationError) Cause() error
Cause function returns cause value.
func (SinglePieceValidationError) Error ¶
func (e SinglePieceValidationError) Error() string
Error satisfies the builtin error interface
func (SinglePieceValidationError) ErrorName ¶
func (e SinglePieceValidationError) ErrorName() string
ErrorName returns error name.
func (SinglePieceValidationError) Field ¶
func (e SinglePieceValidationError) Field() string
Field function returns field value.
func (SinglePieceValidationError) Key ¶
func (e SinglePieceValidationError) Key() bool
Key function returns key value.
func (SinglePieceValidationError) Reason ¶
func (e SinglePieceValidationError) Reason() string
Reason function returns reason value.
type StatTaskRequest ¶
type StatTaskRequest struct { // Task id. TaskId string `protobuf:"bytes,1,opt,name=task_id,json=taskId,proto3" json:"task_id,omitempty"` // contains filtered or unexported fields }
StatTaskRequest represents request of StatTask.
func (*StatTaskRequest) Descriptor
deprecated
func (*StatTaskRequest) Descriptor() ([]byte, []int)
Deprecated: Use StatTaskRequest.ProtoReflect.Descriptor instead.
func (*StatTaskRequest) GetTaskId ¶
func (x *StatTaskRequest) GetTaskId() string
func (*StatTaskRequest) ProtoMessage ¶
func (*StatTaskRequest) ProtoMessage()
func (*StatTaskRequest) ProtoReflect ¶
func (x *StatTaskRequest) ProtoReflect() protoreflect.Message
func (*StatTaskRequest) Reset ¶
func (x *StatTaskRequest) Reset()
func (*StatTaskRequest) String ¶
func (x *StatTaskRequest) String() string
func (*StatTaskRequest) Validate ¶
func (m *StatTaskRequest) Validate() error
Validate checks the field values on StatTaskRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*StatTaskRequest) ValidateAll ¶
func (m *StatTaskRequest) ValidateAll() error
ValidateAll checks the field values on StatTaskRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in StatTaskRequestMultiError, or nil if none found.
type StatTaskRequestMultiError ¶
type StatTaskRequestMultiError []error
StatTaskRequestMultiError is an error wrapping multiple validation errors returned by StatTaskRequest.ValidateAll() if the designated constraints aren't met.
func (StatTaskRequestMultiError) AllErrors ¶
func (m StatTaskRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (StatTaskRequestMultiError) Error ¶
func (m StatTaskRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type StatTaskRequestValidationError ¶
type StatTaskRequestValidationError struct {
// contains filtered or unexported fields
}
StatTaskRequestValidationError is the validation error returned by StatTaskRequest.Validate if the designated constraints aren't met.
func (StatTaskRequestValidationError) Cause ¶
func (e StatTaskRequestValidationError) Cause() error
Cause function returns cause value.
func (StatTaskRequestValidationError) Error ¶
func (e StatTaskRequestValidationError) Error() string
Error satisfies the builtin error interface
func (StatTaskRequestValidationError) ErrorName ¶
func (e StatTaskRequestValidationError) ErrorName() string
ErrorName returns error name.
func (StatTaskRequestValidationError) Field ¶
func (e StatTaskRequestValidationError) Field() string
Field function returns field value.
func (StatTaskRequestValidationError) Key ¶
func (e StatTaskRequestValidationError) Key() bool
Key function returns key value.
func (StatTaskRequestValidationError) Reason ¶
func (e StatTaskRequestValidationError) Reason() string
Reason function returns reason value.
type SyncNetworkTopologyRequest ¶ added in v1.4.8
type SyncNetworkTopologyRequest struct { // Types that are assignable to Request: // // *SyncNetworkTopologyRequest_UpdateProbesOfHostsRequest // *SyncNetworkTopologyRequest_DeleteProbesOfHostsRequest Request isSyncNetworkTopologyRequest_Request `protobuf_oneof:"request"` // contains filtered or unexported fields }
SyncProbesRequest represents request of SyncProbes.
func (*SyncNetworkTopologyRequest) Descriptor
deprecated
added in
v1.4.8
func (*SyncNetworkTopologyRequest) Descriptor() ([]byte, []int)
Deprecated: Use SyncNetworkTopologyRequest.ProtoReflect.Descriptor instead.
func (*SyncNetworkTopologyRequest) GetDeleteProbesOfHostsRequest ¶ added in v1.4.8
func (x *SyncNetworkTopologyRequest) GetDeleteProbesOfHostsRequest() *DeleteHostsRequest
func (*SyncNetworkTopologyRequest) GetRequest ¶ added in v1.4.8
func (m *SyncNetworkTopologyRequest) GetRequest() isSyncNetworkTopologyRequest_Request
func (*SyncNetworkTopologyRequest) GetUpdateProbesOfHostsRequest ¶ added in v1.4.8
func (x *SyncNetworkTopologyRequest) GetUpdateProbesOfHostsRequest() *UpdateHostsRequest
func (*SyncNetworkTopologyRequest) ProtoMessage ¶ added in v1.4.8
func (*SyncNetworkTopologyRequest) ProtoMessage()
func (*SyncNetworkTopologyRequest) ProtoReflect ¶ added in v1.4.8
func (x *SyncNetworkTopologyRequest) ProtoReflect() protoreflect.Message
func (*SyncNetworkTopologyRequest) Reset ¶ added in v1.4.8
func (x *SyncNetworkTopologyRequest) Reset()
func (*SyncNetworkTopologyRequest) String ¶ added in v1.4.8
func (x *SyncNetworkTopologyRequest) String() string
func (*SyncNetworkTopologyRequest) Validate ¶ added in v1.4.8
func (m *SyncNetworkTopologyRequest) Validate() error
Validate checks the field values on SyncNetworkTopologyRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*SyncNetworkTopologyRequest) ValidateAll ¶ added in v1.4.8
func (m *SyncNetworkTopologyRequest) ValidateAll() error
ValidateAll checks the field values on SyncNetworkTopologyRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in SyncNetworkTopologyRequestMultiError, or nil if none found.
type SyncNetworkTopologyRequestMultiError ¶ added in v1.4.8
type SyncNetworkTopologyRequestMultiError []error
SyncNetworkTopologyRequestMultiError is an error wrapping multiple validation errors returned by SyncNetworkTopologyRequest.ValidateAll() if the designated constraints aren't met.
func (SyncNetworkTopologyRequestMultiError) AllErrors ¶ added in v1.4.8
func (m SyncNetworkTopologyRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (SyncNetworkTopologyRequestMultiError) Error ¶ added in v1.4.8
func (m SyncNetworkTopologyRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type SyncNetworkTopologyRequestValidationError ¶ added in v1.4.8
type SyncNetworkTopologyRequestValidationError struct {
// contains filtered or unexported fields
}
SyncNetworkTopologyRequestValidationError is the validation error returned by SyncNetworkTopologyRequest.Validate if the designated constraints aren't met.
func (SyncNetworkTopologyRequestValidationError) Cause ¶ added in v1.4.8
func (e SyncNetworkTopologyRequestValidationError) Cause() error
Cause function returns cause value.
func (SyncNetworkTopologyRequestValidationError) Error ¶ added in v1.4.8
func (e SyncNetworkTopologyRequestValidationError) Error() string
Error satisfies the builtin error interface
func (SyncNetworkTopologyRequestValidationError) ErrorName ¶ added in v1.4.8
func (e SyncNetworkTopologyRequestValidationError) ErrorName() string
ErrorName returns error name.
func (SyncNetworkTopologyRequestValidationError) Field ¶ added in v1.4.8
func (e SyncNetworkTopologyRequestValidationError) Field() string
Field function returns field value.
func (SyncNetworkTopologyRequestValidationError) Key ¶ added in v1.4.8
func (e SyncNetworkTopologyRequestValidationError) Key() bool
Key function returns key value.
func (SyncNetworkTopologyRequestValidationError) Reason ¶ added in v1.4.8
func (e SyncNetworkTopologyRequestValidationError) Reason() string
Reason function returns reason value.
type SyncNetworkTopologyRequest_DeleteProbesOfHostsRequest ¶ added in v1.4.8
type SyncNetworkTopologyRequest_DeleteProbesOfHostsRequest struct {
DeleteProbesOfHostsRequest *DeleteHostsRequest `protobuf:"bytes,2,opt,name=delete_probes_of_hosts_request,json=deleteProbesOfHostsRequest,proto3,oneof"`
}
type SyncNetworkTopologyRequest_UpdateProbesOfHostsRequest ¶ added in v1.4.8
type SyncNetworkTopologyRequest_UpdateProbesOfHostsRequest struct {
UpdateProbesOfHostsRequest *UpdateHostsRequest `protobuf:"bytes,1,opt,name=update_probes_of_hosts_request,json=updateProbesOfHostsRequest,proto3,oneof"`
}
type SyncProbesRequest ¶ added in v1.4.8
type SyncProbesRequest struct { // Probes information of the host. ProbesOfHost *ProbesOfHost `protobuf:"bytes,1,opt,name=probes_of_host,json=probesOfHost,proto3" json:"probes_of_host,omitempty"` // contains filtered or unexported fields }
SyncProbesRequest represents request of SyncProbes.
func (*SyncProbesRequest) Descriptor
deprecated
added in
v1.4.8
func (*SyncProbesRequest) Descriptor() ([]byte, []int)
Deprecated: Use SyncProbesRequest.ProtoReflect.Descriptor instead.
func (*SyncProbesRequest) GetProbesOfHost ¶ added in v1.4.8
func (x *SyncProbesRequest) GetProbesOfHost() *ProbesOfHost
func (*SyncProbesRequest) ProtoMessage ¶ added in v1.4.8
func (*SyncProbesRequest) ProtoMessage()
func (*SyncProbesRequest) ProtoReflect ¶ added in v1.4.8
func (x *SyncProbesRequest) ProtoReflect() protoreflect.Message
func (*SyncProbesRequest) Reset ¶ added in v1.4.8
func (x *SyncProbesRequest) Reset()
func (*SyncProbesRequest) String ¶ added in v1.4.8
func (x *SyncProbesRequest) String() string
func (*SyncProbesRequest) Validate ¶ added in v1.4.8
func (m *SyncProbesRequest) Validate() error
Validate checks the field values on SyncProbesRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*SyncProbesRequest) ValidateAll ¶ added in v1.4.8
func (m *SyncProbesRequest) ValidateAll() error
ValidateAll checks the field values on SyncProbesRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in SyncProbesRequestMultiError, or nil if none found.
type SyncProbesRequestMultiError ¶ added in v1.4.8
type SyncProbesRequestMultiError []error
SyncProbesRequestMultiError is an error wrapping multiple validation errors returned by SyncProbesRequest.ValidateAll() if the designated constraints aren't met.
func (SyncProbesRequestMultiError) AllErrors ¶ added in v1.4.8
func (m SyncProbesRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (SyncProbesRequestMultiError) Error ¶ added in v1.4.8
func (m SyncProbesRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type SyncProbesRequestValidationError ¶ added in v1.4.8
type SyncProbesRequestValidationError struct {
// contains filtered or unexported fields
}
SyncProbesRequestValidationError is the validation error returned by SyncProbesRequest.Validate if the designated constraints aren't met.
func (SyncProbesRequestValidationError) Cause ¶ added in v1.4.8
func (e SyncProbesRequestValidationError) Cause() error
Cause function returns cause value.
func (SyncProbesRequestValidationError) Error ¶ added in v1.4.8
func (e SyncProbesRequestValidationError) Error() string
Error satisfies the builtin error interface
func (SyncProbesRequestValidationError) ErrorName ¶ added in v1.4.8
func (e SyncProbesRequestValidationError) ErrorName() string
ErrorName returns error name.
func (SyncProbesRequestValidationError) Field ¶ added in v1.4.8
func (e SyncProbesRequestValidationError) Field() string
Field function returns field value.
func (SyncProbesRequestValidationError) Key ¶ added in v1.4.8
func (e SyncProbesRequestValidationError) Key() bool
Key function returns key value.
func (SyncProbesRequestValidationError) Reason ¶ added in v1.4.8
func (e SyncProbesRequestValidationError) Reason() string
Reason function returns reason value.
type SyncProbesResponse ¶ added in v1.4.8
type SyncProbesResponse struct { // Hosts needs to be probed. Hosts []*v1.Host `protobuf:"bytes,1,rep,name=hosts,proto3" json:"hosts,omitempty"` // Probe interval. ProbeInterval *durationpb.Duration `protobuf:"bytes,2,opt,name=probe_interval,json=probeInterval,proto3" json:"probe_interval,omitempty"` // contains filtered or unexported fields }
SyncProbesResponse represents response of SyncProbes.
func (*SyncProbesResponse) Descriptor
deprecated
added in
v1.4.8
func (*SyncProbesResponse) Descriptor() ([]byte, []int)
Deprecated: Use SyncProbesResponse.ProtoReflect.Descriptor instead.
func (*SyncProbesResponse) GetHosts ¶ added in v1.4.8
func (x *SyncProbesResponse) GetHosts() []*v1.Host
func (*SyncProbesResponse) GetProbeInterval ¶ added in v1.4.8
func (x *SyncProbesResponse) GetProbeInterval() *durationpb.Duration
func (*SyncProbesResponse) ProtoMessage ¶ added in v1.4.8
func (*SyncProbesResponse) ProtoMessage()
func (*SyncProbesResponse) ProtoReflect ¶ added in v1.4.8
func (x *SyncProbesResponse) ProtoReflect() protoreflect.Message
func (*SyncProbesResponse) Reset ¶ added in v1.4.8
func (x *SyncProbesResponse) Reset()
func (*SyncProbesResponse) String ¶ added in v1.4.8
func (x *SyncProbesResponse) String() string
func (*SyncProbesResponse) Validate ¶ added in v1.4.8
func (m *SyncProbesResponse) Validate() error
Validate checks the field values on SyncProbesResponse with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*SyncProbesResponse) ValidateAll ¶ added in v1.4.8
func (m *SyncProbesResponse) ValidateAll() error
ValidateAll checks the field values on SyncProbesResponse with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in SyncProbesResponseMultiError, or nil if none found.
type SyncProbesResponseMultiError ¶ added in v1.4.8
type SyncProbesResponseMultiError []error
SyncProbesResponseMultiError is an error wrapping multiple validation errors returned by SyncProbesResponse.ValidateAll() if the designated constraints aren't met.
func (SyncProbesResponseMultiError) AllErrors ¶ added in v1.4.8
func (m SyncProbesResponseMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (SyncProbesResponseMultiError) Error ¶ added in v1.4.8
func (m SyncProbesResponseMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type SyncProbesResponseValidationError ¶ added in v1.4.8
type SyncProbesResponseValidationError struct {
// contains filtered or unexported fields
}
SyncProbesResponseValidationError is the validation error returned by SyncProbesResponse.Validate if the designated constraints aren't met.
func (SyncProbesResponseValidationError) Cause ¶ added in v1.4.8
func (e SyncProbesResponseValidationError) Cause() error
Cause function returns cause value.
func (SyncProbesResponseValidationError) Error ¶ added in v1.4.8
func (e SyncProbesResponseValidationError) Error() string
Error satisfies the builtin error interface
func (SyncProbesResponseValidationError) ErrorName ¶ added in v1.4.8
func (e SyncProbesResponseValidationError) ErrorName() string
ErrorName returns error name.
func (SyncProbesResponseValidationError) Field ¶ added in v1.4.8
func (e SyncProbesResponseValidationError) Field() string
Field function returns field value.
func (SyncProbesResponseValidationError) Key ¶ added in v1.4.8
func (e SyncProbesResponseValidationError) Key() bool
Key function returns key value.
func (SyncProbesResponseValidationError) Reason ¶ added in v1.4.8
func (e SyncProbesResponseValidationError) Reason() string
Reason function returns reason value.
type Task ¶
type Task struct { // Task id. Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` // Task type. Type v1.TaskType `protobuf:"varint,2,opt,name=type,proto3,enum=common.TaskType" json:"type,omitempty"` // Task content length. ContentLength int64 `protobuf:"varint,3,opt,name=content_length,json=contentLength,proto3" json:"content_length,omitempty"` // Task total piece count. TotalPieceCount int32 `protobuf:"varint,4,opt,name=total_piece_count,json=totalPieceCount,proto3" json:"total_piece_count,omitempty"` // Task state. State string `protobuf:"bytes,5,opt,name=state,proto3" json:"state,omitempty"` // Task peer count. PeerCount int32 `protobuf:"varint,6,opt,name=peer_count,json=peerCount,proto3" json:"peer_count,omitempty"` // Task contains available peer. HasAvailablePeer bool `protobuf:"varint,7,opt,name=hasAvailablePeer,proto3" json:"hasAvailablePeer,omitempty"` // contains filtered or unexported fields }
Task represents download task.
func (*Task) Descriptor
deprecated
func (*Task) GetContentLength ¶
func (*Task) GetHasAvailablePeer ¶
func (*Task) GetPeerCount ¶
func (*Task) GetTotalPieceCount ¶
func (*Task) ProtoMessage ¶
func (*Task) ProtoMessage()
func (*Task) ProtoReflect ¶
func (x *Task) ProtoReflect() protoreflect.Message
func (*Task) Validate ¶
Validate checks the field values on Task with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*Task) ValidateAll ¶
ValidateAll checks the field values on Task with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in TaskMultiError, or nil if none found.
type TaskMultiError ¶
type TaskMultiError []error
TaskMultiError is an error wrapping multiple validation errors returned by Task.ValidateAll() if the designated constraints aren't met.
func (TaskMultiError) AllErrors ¶
func (m TaskMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (TaskMultiError) Error ¶
func (m TaskMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type TaskValidationError ¶
type TaskValidationError struct {
// contains filtered or unexported fields
}
TaskValidationError is the validation error returned by Task.Validate if the designated constraints aren't met.
func (TaskValidationError) Cause ¶
func (e TaskValidationError) Cause() error
Cause function returns cause value.
func (TaskValidationError) Error ¶
func (e TaskValidationError) Error() string
Error satisfies the builtin error interface
func (TaskValidationError) ErrorName ¶
func (e TaskValidationError) ErrorName() string
ErrorName returns error name.
func (TaskValidationError) Field ¶
func (e TaskValidationError) Field() string
Field function returns field value.
func (TaskValidationError) Key ¶
func (e TaskValidationError) Key() bool
Key function returns key value.
func (TaskValidationError) Reason ¶
func (e TaskValidationError) Reason() string
Reason function returns reason value.
type UnimplementedSchedulerServer ¶
type UnimplementedSchedulerServer struct { }
UnimplementedSchedulerServer should be embedded to have forward compatible implementations.
func (UnimplementedSchedulerServer) AnnounceHost ¶ added in v1.2.5
func (UnimplementedSchedulerServer) AnnounceHost(context.Context, *AnnounceHostRequest) (*emptypb.Empty, error)
func (UnimplementedSchedulerServer) AnnounceTask ¶
func (UnimplementedSchedulerServer) AnnounceTask(context.Context, *AnnounceTaskRequest) (*emptypb.Empty, error)
func (UnimplementedSchedulerServer) LeaveHost ¶ added in v1.2.2
func (UnimplementedSchedulerServer) LeaveHost(context.Context, *LeaveHostRequest) (*emptypb.Empty, error)
func (UnimplementedSchedulerServer) LeaveTask ¶
func (UnimplementedSchedulerServer) LeaveTask(context.Context, *PeerTarget) (*emptypb.Empty, error)
func (UnimplementedSchedulerServer) RegisterPeerTask ¶
func (UnimplementedSchedulerServer) RegisterPeerTask(context.Context, *PeerTaskRequest) (*RegisterResult, error)
func (UnimplementedSchedulerServer) ReportPeerResult ¶
func (UnimplementedSchedulerServer) ReportPeerResult(context.Context, *PeerResult) (*emptypb.Empty, error)
func (UnimplementedSchedulerServer) ReportPieceResult ¶
func (UnimplementedSchedulerServer) ReportPieceResult(Scheduler_ReportPieceResultServer) error
func (UnimplementedSchedulerServer) StatTask ¶
func (UnimplementedSchedulerServer) StatTask(context.Context, *StatTaskRequest) (*Task, error)
func (UnimplementedSchedulerServer) SyncNetworkTopology ¶ added in v1.4.8
func (UnimplementedSchedulerServer) SyncNetworkTopology(Scheduler_SyncNetworkTopologyServer) error
func (UnimplementedSchedulerServer) SyncProbes ¶ added in v1.4.8
func (UnimplementedSchedulerServer) SyncProbes(Scheduler_SyncProbesServer) error
type UnsafeSchedulerServer ¶ added in v1.4.1
type UnsafeSchedulerServer interface {
// contains filtered or unexported methods
}
UnsafeSchedulerServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to SchedulerServer will result in compilation errors.
type UpdateHostsRequest ¶ added in v1.4.8
type UpdateHostsRequest struct { // Hosts needs to be updated. ProbesOfHosts []*ProbesOfHost `protobuf:"bytes,1,rep,name=probes_of_hosts,json=probesOfHosts,proto3" json:"probes_of_hosts,omitempty"` // contains filtered or unexported fields }
UpdateHostsRequest represents update hosts request of SyncNetworkTopologyRequest.
func (*UpdateHostsRequest) Descriptor
deprecated
added in
v1.4.8
func (*UpdateHostsRequest) Descriptor() ([]byte, []int)
Deprecated: Use UpdateHostsRequest.ProtoReflect.Descriptor instead.
func (*UpdateHostsRequest) GetProbesOfHosts ¶ added in v1.4.8
func (x *UpdateHostsRequest) GetProbesOfHosts() []*ProbesOfHost
func (*UpdateHostsRequest) ProtoMessage ¶ added in v1.4.8
func (*UpdateHostsRequest) ProtoMessage()
func (*UpdateHostsRequest) ProtoReflect ¶ added in v1.4.8
func (x *UpdateHostsRequest) ProtoReflect() protoreflect.Message
func (*UpdateHostsRequest) Reset ¶ added in v1.4.8
func (x *UpdateHostsRequest) Reset()
func (*UpdateHostsRequest) String ¶ added in v1.4.8
func (x *UpdateHostsRequest) String() string
func (*UpdateHostsRequest) Validate ¶ added in v1.4.8
func (m *UpdateHostsRequest) Validate() error
Validate checks the field values on UpdateHostsRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*UpdateHostsRequest) ValidateAll ¶ added in v1.4.8
func (m *UpdateHostsRequest) ValidateAll() error
ValidateAll checks the field values on UpdateHostsRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in UpdateHostsRequestMultiError, or nil if none found.
type UpdateHostsRequestMultiError ¶ added in v1.4.8
type UpdateHostsRequestMultiError []error
UpdateHostsRequestMultiError is an error wrapping multiple validation errors returned by UpdateHostsRequest.ValidateAll() if the designated constraints aren't met.
func (UpdateHostsRequestMultiError) AllErrors ¶ added in v1.4.8
func (m UpdateHostsRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (UpdateHostsRequestMultiError) Error ¶ added in v1.4.8
func (m UpdateHostsRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type UpdateHostsRequestValidationError ¶ added in v1.4.8
type UpdateHostsRequestValidationError struct {
// contains filtered or unexported fields
}
UpdateHostsRequestValidationError is the validation error returned by UpdateHostsRequest.Validate if the designated constraints aren't met.
func (UpdateHostsRequestValidationError) Cause ¶ added in v1.4.8
func (e UpdateHostsRequestValidationError) Cause() error
Cause function returns cause value.
func (UpdateHostsRequestValidationError) Error ¶ added in v1.4.8
func (e UpdateHostsRequestValidationError) Error() string
Error satisfies the builtin error interface
func (UpdateHostsRequestValidationError) ErrorName ¶ added in v1.4.8
func (e UpdateHostsRequestValidationError) ErrorName() string
ErrorName returns error name.
func (UpdateHostsRequestValidationError) Field ¶ added in v1.4.8
func (e UpdateHostsRequestValidationError) Field() string
Field function returns field value.
func (UpdateHostsRequestValidationError) Key ¶ added in v1.4.8
func (e UpdateHostsRequestValidationError) Key() bool
Key function returns key value.
func (UpdateHostsRequestValidationError) Reason ¶ added in v1.4.8
func (e UpdateHostsRequestValidationError) Reason() string
Reason function returns reason value.