scheduler

package
v1.9.9 Latest Latest
Warning

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

Go to latest
Published: Jul 20, 2023 License: Apache-2.0 Imports: 25 Imported by: 7

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_pkg_apis_scheduler_v2_scheduler_proto protoreflect.FileDescriptor
View Source
var Scheduler_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "scheduler.v2.Scheduler",
	HandlerType: (*SchedulerServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "StatPeer",
			Handler:    _Scheduler_StatPeer_Handler,
		},
		{
			MethodName: "LeavePeer",
			Handler:    _Scheduler_LeavePeer_Handler,
		},
		{
			MethodName: "ExchangePeer",
			Handler:    _Scheduler_ExchangePeer_Handler,
		},
		{
			MethodName: "StatTask",
			Handler:    _Scheduler_StatTask_Handler,
		},
		{
			MethodName: "AnnounceHost",
			Handler:    _Scheduler_AnnounceHost_Handler,
		},
		{
			MethodName: "LeaveHost",
			Handler:    _Scheduler_LeaveHost_Handler,
		},
	},
	Streams: []grpc.StreamDesc{
		{
			StreamName:    "AnnouncePeer",
			Handler:       _Scheduler_AnnouncePeer_Handler,
			ServerStreams: true,
			ClientStreams: true,
		},
		{
			StreamName:    "SyncProbes",
			Handler:       _Scheduler_SyncProbes_Handler,
			ServerStreams: true,
			ClientStreams: true,
		},
	},
	Metadata: "pkg/apis/scheduler/v2/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 info.
	Host *v2.Host `protobuf:"bytes,1,opt,name=host,proto3" json:"host,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) GetHost added in v1.6.1

func (x *AnnounceHostRequest) GetHost() *v2.Host

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

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

Cause function returns cause value.

func (AnnounceHostRequestValidationError) Error added in v1.2.5

Error satisfies the builtin error interface

func (AnnounceHostRequestValidationError) ErrorName added in v1.2.5

ErrorName returns error name.

func (AnnounceHostRequestValidationError) Field added in v1.2.5

Field function returns field value.

func (AnnounceHostRequestValidationError) Key added in v1.2.5

Key function returns key value.

func (AnnounceHostRequestValidationError) Reason added in v1.2.5

Reason function returns reason value.

type AnnouncePeerRequest

type AnnouncePeerRequest struct {

	// Host id.
	HostId string `protobuf:"bytes,1,opt,name=host_id,json=hostId,proto3" json:"host_id,omitempty"`
	// Task id.
	TaskId string `protobuf:"bytes,2,opt,name=task_id,json=taskId,proto3" json:"task_id,omitempty"`
	// Peer id.
	PeerId string `protobuf:"bytes,3,opt,name=peer_id,json=peerId,proto3" json:"peer_id,omitempty"`
	// Types that are assignable to Request:
	//
	//	*AnnouncePeerRequest_RegisterPeerRequest
	//	*AnnouncePeerRequest_RegisterSeedPeerRequest
	//	*AnnouncePeerRequest_DownloadPeerStartedRequest
	//	*AnnouncePeerRequest_DownloadPeerBackToSourceStartedRequest
	//	*AnnouncePeerRequest_DownloadPeerFinishedRequest
	//	*AnnouncePeerRequest_DownloadPeerBackToSourceFinishedRequest
	//	*AnnouncePeerRequest_DownloadPeerFailedRequest
	//	*AnnouncePeerRequest_DownloadPeerBackToSourceFailedRequest
	//	*AnnouncePeerRequest_DownloadPieceFinishedRequest
	//	*AnnouncePeerRequest_DownloadPieceBackToSourceFinishedRequest
	//	*AnnouncePeerRequest_DownloadPieceFailedRequest
	//	*AnnouncePeerRequest_DownloadPieceBackToSourceFailedRequest
	//	*AnnouncePeerRequest_SyncPiecesFailedRequest
	Request isAnnouncePeerRequest_Request `protobuf_oneof:"request"`
	// contains filtered or unexported fields
}

AnnouncePeerRequest represents request of AnnouncePeer.

func (*AnnouncePeerRequest) Descriptor deprecated

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

Deprecated: Use AnnouncePeerRequest.ProtoReflect.Descriptor instead.

func (*AnnouncePeerRequest) GetDownloadPeerBackToSourceFailedRequest added in v1.7.8

func (x *AnnouncePeerRequest) GetDownloadPeerBackToSourceFailedRequest() *DownloadPeerBackToSourceFailedRequest

func (*AnnouncePeerRequest) GetDownloadPeerBackToSourceFinishedRequest added in v1.4.1

func (x *AnnouncePeerRequest) GetDownloadPeerBackToSourceFinishedRequest() *DownloadPeerBackToSourceFinishedRequest

func (*AnnouncePeerRequest) GetDownloadPeerBackToSourceStartedRequest added in v1.4.1

func (x *AnnouncePeerRequest) GetDownloadPeerBackToSourceStartedRequest() *DownloadPeerBackToSourceStartedRequest

func (*AnnouncePeerRequest) GetDownloadPeerFailedRequest added in v1.7.8

func (x *AnnouncePeerRequest) GetDownloadPeerFailedRequest() *DownloadPeerFailedRequest

func (*AnnouncePeerRequest) GetDownloadPeerFinishedRequest added in v1.4.1

func (x *AnnouncePeerRequest) GetDownloadPeerFinishedRequest() *DownloadPeerFinishedRequest

func (*AnnouncePeerRequest) GetDownloadPeerStartedRequest added in v1.4.1

func (x *AnnouncePeerRequest) GetDownloadPeerStartedRequest() *DownloadPeerStartedRequest

func (*AnnouncePeerRequest) GetDownloadPieceBackToSourceFailedRequest added in v1.6.6

func (x *AnnouncePeerRequest) GetDownloadPieceBackToSourceFailedRequest() *DownloadPieceBackToSourceFailedRequest

func (*AnnouncePeerRequest) GetDownloadPieceBackToSourceFinishedRequest added in v1.4.1

func (x *AnnouncePeerRequest) GetDownloadPieceBackToSourceFinishedRequest() *DownloadPieceBackToSourceFinishedRequest

func (*AnnouncePeerRequest) GetDownloadPieceFailedRequest added in v1.6.6

func (x *AnnouncePeerRequest) GetDownloadPieceFailedRequest() *DownloadPieceFailedRequest

func (*AnnouncePeerRequest) GetDownloadPieceFinishedRequest added in v1.4.1

func (x *AnnouncePeerRequest) GetDownloadPieceFinishedRequest() *DownloadPieceFinishedRequest

func (*AnnouncePeerRequest) GetHostId added in v1.6.7

func (x *AnnouncePeerRequest) GetHostId() string

func (*AnnouncePeerRequest) GetPeerId added in v1.4.5

func (x *AnnouncePeerRequest) GetPeerId() string

func (*AnnouncePeerRequest) GetRegisterPeerRequest added in v1.4.1

func (x *AnnouncePeerRequest) GetRegisterPeerRequest() *RegisterPeerRequest

func (*AnnouncePeerRequest) GetRegisterSeedPeerRequest added in v1.6.9

func (x *AnnouncePeerRequest) GetRegisterSeedPeerRequest() *RegisterSeedPeerRequest

func (*AnnouncePeerRequest) GetRequest

func (m *AnnouncePeerRequest) GetRequest() isAnnouncePeerRequest_Request

func (*AnnouncePeerRequest) GetSyncPiecesFailedRequest added in v1.6.6

func (x *AnnouncePeerRequest) GetSyncPiecesFailedRequest() *SyncPiecesFailedRequest

func (*AnnouncePeerRequest) GetTaskId added in v1.4.5

func (x *AnnouncePeerRequest) GetTaskId() string

func (*AnnouncePeerRequest) ProtoMessage

func (*AnnouncePeerRequest) ProtoMessage()

func (*AnnouncePeerRequest) ProtoReflect

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

func (*AnnouncePeerRequest) Reset

func (x *AnnouncePeerRequest) Reset()

func (*AnnouncePeerRequest) String

func (x *AnnouncePeerRequest) String() string

func (*AnnouncePeerRequest) Validate

func (m *AnnouncePeerRequest) Validate() error

Validate checks the field values on AnnouncePeerRequest 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 (*AnnouncePeerRequest) ValidateAll

func (m *AnnouncePeerRequest) ValidateAll() error

ValidateAll checks the field values on AnnouncePeerRequest 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 AnnouncePeerRequestMultiError, or nil if none found.

type AnnouncePeerRequestMultiError

type AnnouncePeerRequestMultiError []error

AnnouncePeerRequestMultiError is an error wrapping multiple validation errors returned by AnnouncePeerRequest.ValidateAll() if the designated constraints aren't met.

func (AnnouncePeerRequestMultiError) AllErrors

func (m AnnouncePeerRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (AnnouncePeerRequestMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type AnnouncePeerRequestValidationError

type AnnouncePeerRequestValidationError struct {
	// contains filtered or unexported fields
}

AnnouncePeerRequestValidationError is the validation error returned by AnnouncePeerRequest.Validate if the designated constraints aren't met.

func (AnnouncePeerRequestValidationError) Cause

Cause function returns cause value.

func (AnnouncePeerRequestValidationError) Error

Error satisfies the builtin error interface

func (AnnouncePeerRequestValidationError) ErrorName

ErrorName returns error name.

func (AnnouncePeerRequestValidationError) Field

Field function returns field value.

func (AnnouncePeerRequestValidationError) Key

Key function returns key value.

func (AnnouncePeerRequestValidationError) Reason

Reason function returns reason value.

type AnnouncePeerRequest_DownloadPeerBackToSourceFailedRequest added in v1.7.8

type AnnouncePeerRequest_DownloadPeerBackToSourceFailedRequest struct {
	DownloadPeerBackToSourceFailedRequest *DownloadPeerBackToSourceFailedRequest `` /* 128-byte string literal not displayed */
}

type AnnouncePeerRequest_DownloadPeerBackToSourceFinishedRequest added in v1.4.1

type AnnouncePeerRequest_DownloadPeerBackToSourceFinishedRequest struct {
	DownloadPeerBackToSourceFinishedRequest *DownloadPeerBackToSourceFinishedRequest `` /* 131-byte string literal not displayed */
}

type AnnouncePeerRequest_DownloadPeerBackToSourceStartedRequest added in v1.4.1

type AnnouncePeerRequest_DownloadPeerBackToSourceStartedRequest struct {
	DownloadPeerBackToSourceStartedRequest *DownloadPeerBackToSourceStartedRequest `` /* 129-byte string literal not displayed */
}

type AnnouncePeerRequest_DownloadPeerFailedRequest added in v1.7.8

type AnnouncePeerRequest_DownloadPeerFailedRequest struct {
	DownloadPeerFailedRequest *DownloadPeerFailedRequest `protobuf:"bytes,10,opt,name=download_peer_failed_request,json=downloadPeerFailedRequest,proto3,oneof"`
}

type AnnouncePeerRequest_DownloadPeerFinishedRequest added in v1.4.1

type AnnouncePeerRequest_DownloadPeerFinishedRequest struct {
	DownloadPeerFinishedRequest *DownloadPeerFinishedRequest `protobuf:"bytes,8,opt,name=download_peer_finished_request,json=downloadPeerFinishedRequest,proto3,oneof"`
}

type AnnouncePeerRequest_DownloadPeerStartedRequest added in v1.4.1

type AnnouncePeerRequest_DownloadPeerStartedRequest struct {
	DownloadPeerStartedRequest *DownloadPeerStartedRequest `protobuf:"bytes,6,opt,name=download_peer_started_request,json=downloadPeerStartedRequest,proto3,oneof"`
}

type AnnouncePeerRequest_DownloadPieceBackToSourceFailedRequest added in v1.6.6

type AnnouncePeerRequest_DownloadPieceBackToSourceFailedRequest struct {
	DownloadPieceBackToSourceFailedRequest *DownloadPieceBackToSourceFailedRequest `` /* 130-byte string literal not displayed */
}

type AnnouncePeerRequest_DownloadPieceBackToSourceFinishedRequest added in v1.4.1

type AnnouncePeerRequest_DownloadPieceBackToSourceFinishedRequest struct {
	DownloadPieceBackToSourceFinishedRequest *DownloadPieceBackToSourceFinishedRequest `` /* 134-byte string literal not displayed */
}

type AnnouncePeerRequest_DownloadPieceFailedRequest added in v1.6.6

type AnnouncePeerRequest_DownloadPieceFailedRequest struct {
	DownloadPieceFailedRequest *DownloadPieceFailedRequest `protobuf:"bytes,14,opt,name=download_piece_failed_request,json=downloadPieceFailedRequest,proto3,oneof"`
}

type AnnouncePeerRequest_DownloadPieceFinishedRequest added in v1.4.1

type AnnouncePeerRequest_DownloadPieceFinishedRequest struct {
	DownloadPieceFinishedRequest *DownloadPieceFinishedRequest `protobuf:"bytes,12,opt,name=download_piece_finished_request,json=downloadPieceFinishedRequest,proto3,oneof"`
}

type AnnouncePeerRequest_RegisterPeerRequest added in v1.4.1

type AnnouncePeerRequest_RegisterPeerRequest struct {
	RegisterPeerRequest *RegisterPeerRequest `protobuf:"bytes,4,opt,name=register_peer_request,json=registerPeerRequest,proto3,oneof"`
}

type AnnouncePeerRequest_RegisterSeedPeerRequest added in v1.6.9

type AnnouncePeerRequest_RegisterSeedPeerRequest struct {
	RegisterSeedPeerRequest *RegisterSeedPeerRequest `protobuf:"bytes,5,opt,name=register_seed_peer_request,json=registerSeedPeerRequest,proto3,oneof"`
}

type AnnouncePeerRequest_SyncPiecesFailedRequest added in v1.6.6

type AnnouncePeerRequest_SyncPiecesFailedRequest struct {
	SyncPiecesFailedRequest *SyncPiecesFailedRequest `protobuf:"bytes,16,opt,name=sync_pieces_failed_request,json=syncPiecesFailedRequest,proto3,oneof"`
}

type AnnouncePeerResponse

type AnnouncePeerResponse struct {

	// Types that are assignable to Response:
	//
	//	*AnnouncePeerResponse_EmptyTaskResponse
	//	*AnnouncePeerResponse_TinyTaskResponse
	//	*AnnouncePeerResponse_SmallTaskResponse
	//	*AnnouncePeerResponse_NormalTaskResponse
	//	*AnnouncePeerResponse_NeedBackToSourceResponse
	Response isAnnouncePeerResponse_Response `protobuf_oneof:"response"`
	// contains filtered or unexported fields
}

AnnouncePeerResponse represents response of AnnouncePeer.

func (*AnnouncePeerResponse) Descriptor deprecated

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

Deprecated: Use AnnouncePeerResponse.ProtoReflect.Descriptor instead.

func (*AnnouncePeerResponse) GetEmptyTaskResponse added in v1.7.1

func (x *AnnouncePeerResponse) GetEmptyTaskResponse() *EmptyTaskResponse

func (*AnnouncePeerResponse) GetNeedBackToSourceResponse

func (x *AnnouncePeerResponse) GetNeedBackToSourceResponse() *NeedBackToSourceResponse

func (*AnnouncePeerResponse) GetNormalTaskResponse

func (x *AnnouncePeerResponse) GetNormalTaskResponse() *NormalTaskResponse

func (*AnnouncePeerResponse) GetResponse

func (m *AnnouncePeerResponse) GetResponse() isAnnouncePeerResponse_Response

func (*AnnouncePeerResponse) GetSmallTaskResponse

func (x *AnnouncePeerResponse) GetSmallTaskResponse() *SmallTaskResponse

func (*AnnouncePeerResponse) GetTinyTaskResponse

func (x *AnnouncePeerResponse) GetTinyTaskResponse() *TinyTaskResponse

func (*AnnouncePeerResponse) ProtoMessage

func (*AnnouncePeerResponse) ProtoMessage()

func (*AnnouncePeerResponse) ProtoReflect

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

func (*AnnouncePeerResponse) Reset

func (x *AnnouncePeerResponse) Reset()

func (*AnnouncePeerResponse) String

func (x *AnnouncePeerResponse) String() string

func (*AnnouncePeerResponse) Validate

func (m *AnnouncePeerResponse) Validate() error

Validate checks the field values on AnnouncePeerResponse 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 (*AnnouncePeerResponse) ValidateAll

func (m *AnnouncePeerResponse) ValidateAll() error

ValidateAll checks the field values on AnnouncePeerResponse 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 AnnouncePeerResponseMultiError, or nil if none found.

type AnnouncePeerResponseMultiError

type AnnouncePeerResponseMultiError []error

AnnouncePeerResponseMultiError is an error wrapping multiple validation errors returned by AnnouncePeerResponse.ValidateAll() if the designated constraints aren't met.

func (AnnouncePeerResponseMultiError) AllErrors

func (m AnnouncePeerResponseMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (AnnouncePeerResponseMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type AnnouncePeerResponseValidationError

type AnnouncePeerResponseValidationError struct {
	// contains filtered or unexported fields
}

AnnouncePeerResponseValidationError is the validation error returned by AnnouncePeerResponse.Validate if the designated constraints aren't met.

func (AnnouncePeerResponseValidationError) Cause

Cause function returns cause value.

func (AnnouncePeerResponseValidationError) Error

Error satisfies the builtin error interface

func (AnnouncePeerResponseValidationError) ErrorName

ErrorName returns error name.

func (AnnouncePeerResponseValidationError) Field

Field function returns field value.

func (AnnouncePeerResponseValidationError) Key

Key function returns key value.

func (AnnouncePeerResponseValidationError) Reason

Reason function returns reason value.

type AnnouncePeerResponse_EmptyTaskResponse added in v1.7.1

type AnnouncePeerResponse_EmptyTaskResponse struct {
	EmptyTaskResponse *EmptyTaskResponse `protobuf:"bytes,1,opt,name=empty_task_response,json=emptyTaskResponse,proto3,oneof"`
}

type AnnouncePeerResponse_NeedBackToSourceResponse

type AnnouncePeerResponse_NeedBackToSourceResponse struct {
	NeedBackToSourceResponse *NeedBackToSourceResponse `protobuf:"bytes,5,opt,name=need_back_to_source_response,json=needBackToSourceResponse,proto3,oneof"`
}

type AnnouncePeerResponse_NormalTaskResponse

type AnnouncePeerResponse_NormalTaskResponse struct {
	NormalTaskResponse *NormalTaskResponse `protobuf:"bytes,4,opt,name=normal_task_response,json=normalTaskResponse,proto3,oneof"`
}

type AnnouncePeerResponse_SmallTaskResponse

type AnnouncePeerResponse_SmallTaskResponse struct {
	SmallTaskResponse *SmallTaskResponse `protobuf:"bytes,3,opt,name=small_task_response,json=smallTaskResponse,proto3,oneof"`
}

type AnnouncePeerResponse_TinyTaskResponse

type AnnouncePeerResponse_TinyTaskResponse struct {
	TinyTaskResponse *TinyTaskResponse `protobuf:"bytes,2,opt,name=tiny_task_response,json=tinyTaskResponse,proto3,oneof"`
}

type DownloadPeerBackToSourceFailedRequest added in v1.7.8

type DownloadPeerBackToSourceFailedRequest struct {

	// The description of the download back-to-source failed.
	Description string `protobuf:"bytes,1,opt,name=description,proto3" json:"description,omitempty"`
	// contains filtered or unexported fields
}

DownloadPeerBackToSourceFailedRequest represents peer download back-to-source failed request of AnnouncePeerRequest.

func (*DownloadPeerBackToSourceFailedRequest) Descriptor deprecated added in v1.7.8

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

Deprecated: Use DownloadPeerBackToSourceFailedRequest.ProtoReflect.Descriptor instead.

func (*DownloadPeerBackToSourceFailedRequest) GetDescription added in v1.7.8

func (x *DownloadPeerBackToSourceFailedRequest) GetDescription() string

func (*DownloadPeerBackToSourceFailedRequest) ProtoMessage added in v1.7.8

func (*DownloadPeerBackToSourceFailedRequest) ProtoMessage()

func (*DownloadPeerBackToSourceFailedRequest) ProtoReflect added in v1.7.8

func (*DownloadPeerBackToSourceFailedRequest) Reset added in v1.7.8

func (*DownloadPeerBackToSourceFailedRequest) String added in v1.7.8

func (*DownloadPeerBackToSourceFailedRequest) Validate added in v1.7.8

Validate checks the field values on DownloadPeerBackToSourceFailedRequest 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 (*DownloadPeerBackToSourceFailedRequest) ValidateAll added in v1.7.8

ValidateAll checks the field values on DownloadPeerBackToSourceFailedRequest 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 DownloadPeerBackToSourceFailedRequestMultiError, or nil if none found.

type DownloadPeerBackToSourceFailedRequestMultiError added in v1.7.8

type DownloadPeerBackToSourceFailedRequestMultiError []error

DownloadPeerBackToSourceFailedRequestMultiError is an error wrapping multiple validation errors returned by DownloadPeerBackToSourceFailedRequest.ValidateAll() if the designated constraints aren't met.

func (DownloadPeerBackToSourceFailedRequestMultiError) AllErrors added in v1.7.8

AllErrors returns a list of validation violation errors.

func (DownloadPeerBackToSourceFailedRequestMultiError) Error added in v1.7.8

Error returns a concatenation of all the error messages it wraps.

type DownloadPeerBackToSourceFailedRequestValidationError added in v1.7.8

type DownloadPeerBackToSourceFailedRequestValidationError struct {
	// contains filtered or unexported fields
}

DownloadPeerBackToSourceFailedRequestValidationError is the validation error returned by DownloadPeerBackToSourceFailedRequest.Validate if the designated constraints aren't met.

func (DownloadPeerBackToSourceFailedRequestValidationError) Cause added in v1.7.8

Cause function returns cause value.

func (DownloadPeerBackToSourceFailedRequestValidationError) Error added in v1.7.8

Error satisfies the builtin error interface

func (DownloadPeerBackToSourceFailedRequestValidationError) ErrorName added in v1.7.8

ErrorName returns error name.

func (DownloadPeerBackToSourceFailedRequestValidationError) Field added in v1.7.8

Field function returns field value.

func (DownloadPeerBackToSourceFailedRequestValidationError) Key added in v1.7.8

Key function returns key value.

func (DownloadPeerBackToSourceFailedRequestValidationError) Reason added in v1.7.8

Reason function returns reason value.

type DownloadPeerBackToSourceFinishedRequest added in v1.4.1

type DownloadPeerBackToSourceFinishedRequest struct {

	// Total content length.
	ContentLength int64 `protobuf:"varint,1,opt,name=content_length,json=contentLength,proto3" json:"content_length,omitempty"`
	// Total piece count.
	PieceCount int32 `protobuf:"varint,2,opt,name=piece_count,json=pieceCount,proto3" json:"piece_count,omitempty"`
	// contains filtered or unexported fields
}

DownloadPeerBackToSourceFinishedRequest represents peer download back-to-source finished request of AnnouncePeerRequest.

func (*DownloadPeerBackToSourceFinishedRequest) Descriptor deprecated added in v1.4.1

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

Deprecated: Use DownloadPeerBackToSourceFinishedRequest.ProtoReflect.Descriptor instead.

func (*DownloadPeerBackToSourceFinishedRequest) GetContentLength added in v1.4.1

func (x *DownloadPeerBackToSourceFinishedRequest) GetContentLength() int64

func (*DownloadPeerBackToSourceFinishedRequest) GetPieceCount added in v1.4.1

func (*DownloadPeerBackToSourceFinishedRequest) ProtoMessage added in v1.4.1

func (*DownloadPeerBackToSourceFinishedRequest) ProtoReflect added in v1.4.1

func (*DownloadPeerBackToSourceFinishedRequest) Reset added in v1.4.1

func (*DownloadPeerBackToSourceFinishedRequest) String added in v1.4.1

func (*DownloadPeerBackToSourceFinishedRequest) Validate added in v1.4.1

Validate checks the field values on DownloadPeerBackToSourceFinishedRequest 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 (*DownloadPeerBackToSourceFinishedRequest) ValidateAll added in v1.4.1

ValidateAll checks the field values on DownloadPeerBackToSourceFinishedRequest 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 DownloadPeerBackToSourceFinishedRequestMultiError, or nil if none found.

type DownloadPeerBackToSourceFinishedRequestMultiError added in v1.4.1

type DownloadPeerBackToSourceFinishedRequestMultiError []error

DownloadPeerBackToSourceFinishedRequestMultiError is an error wrapping multiple validation errors returned by DownloadPeerBackToSourceFinishedRequest.ValidateAll() if the designated constraints aren't met.

func (DownloadPeerBackToSourceFinishedRequestMultiError) AllErrors added in v1.4.1

AllErrors returns a list of validation violation errors.

func (DownloadPeerBackToSourceFinishedRequestMultiError) Error added in v1.4.1

Error returns a concatenation of all the error messages it wraps.

type DownloadPeerBackToSourceFinishedRequestValidationError added in v1.4.1

type DownloadPeerBackToSourceFinishedRequestValidationError struct {
	// contains filtered or unexported fields
}

DownloadPeerBackToSourceFinishedRequestValidationError is the validation error returned by DownloadPeerBackToSourceFinishedRequest.Validate if the designated constraints aren't met.

func (DownloadPeerBackToSourceFinishedRequestValidationError) Cause added in v1.4.1

Cause function returns cause value.

func (DownloadPeerBackToSourceFinishedRequestValidationError) Error added in v1.4.1

Error satisfies the builtin error interface

func (DownloadPeerBackToSourceFinishedRequestValidationError) ErrorName added in v1.4.1

ErrorName returns error name.

func (DownloadPeerBackToSourceFinishedRequestValidationError) Field added in v1.4.1

Field function returns field value.

func (DownloadPeerBackToSourceFinishedRequestValidationError) Key added in v1.4.1

Key function returns key value.

func (DownloadPeerBackToSourceFinishedRequestValidationError) Reason added in v1.4.1

Reason function returns reason value.

type DownloadPeerBackToSourceStartedRequest added in v1.4.1

type DownloadPeerBackToSourceStartedRequest struct {

	// The description of the back-to-source reason.
	Description string `protobuf:"bytes,1,opt,name=description,proto3" json:"description,omitempty"`
	// contains filtered or unexported fields
}

DownloadPeerBackToSourceStartedRequest represents peer download back-to-source started request of AnnouncePeerRequest.

func (*DownloadPeerBackToSourceStartedRequest) Descriptor deprecated added in v1.4.1

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

Deprecated: Use DownloadPeerBackToSourceStartedRequest.ProtoReflect.Descriptor instead.

func (*DownloadPeerBackToSourceStartedRequest) GetDescription added in v1.6.8

func (x *DownloadPeerBackToSourceStartedRequest) GetDescription() string

func (*DownloadPeerBackToSourceStartedRequest) ProtoMessage added in v1.4.1

func (*DownloadPeerBackToSourceStartedRequest) ProtoReflect added in v1.4.1

func (*DownloadPeerBackToSourceStartedRequest) Reset added in v1.4.1

func (*DownloadPeerBackToSourceStartedRequest) String added in v1.4.1

func (*DownloadPeerBackToSourceStartedRequest) Validate added in v1.4.1

Validate checks the field values on DownloadPeerBackToSourceStartedRequest 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 (*DownloadPeerBackToSourceStartedRequest) ValidateAll added in v1.4.1

ValidateAll checks the field values on DownloadPeerBackToSourceStartedRequest 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 DownloadPeerBackToSourceStartedRequestMultiError, or nil if none found.

type DownloadPeerBackToSourceStartedRequestMultiError added in v1.4.1

type DownloadPeerBackToSourceStartedRequestMultiError []error

DownloadPeerBackToSourceStartedRequestMultiError is an error wrapping multiple validation errors returned by DownloadPeerBackToSourceStartedRequest.ValidateAll() if the designated constraints aren't met.

func (DownloadPeerBackToSourceStartedRequestMultiError) AllErrors added in v1.4.1

AllErrors returns a list of validation violation errors.

func (DownloadPeerBackToSourceStartedRequestMultiError) Error added in v1.4.1

Error returns a concatenation of all the error messages it wraps.

type DownloadPeerBackToSourceStartedRequestValidationError added in v1.4.1

type DownloadPeerBackToSourceStartedRequestValidationError struct {
	// contains filtered or unexported fields
}

DownloadPeerBackToSourceStartedRequestValidationError is the validation error returned by DownloadPeerBackToSourceStartedRequest.Validate if the designated constraints aren't met.

func (DownloadPeerBackToSourceStartedRequestValidationError) Cause added in v1.4.1

Cause function returns cause value.

func (DownloadPeerBackToSourceStartedRequestValidationError) Error added in v1.4.1

Error satisfies the builtin error interface

func (DownloadPeerBackToSourceStartedRequestValidationError) ErrorName added in v1.4.1

ErrorName returns error name.

func (DownloadPeerBackToSourceStartedRequestValidationError) Field added in v1.4.1

Field function returns field value.

func (DownloadPeerBackToSourceStartedRequestValidationError) Key added in v1.4.1

Key function returns key value.

func (DownloadPeerBackToSourceStartedRequestValidationError) Reason added in v1.4.1

Reason function returns reason value.

type DownloadPeerFailedRequest added in v1.7.8

type DownloadPeerFailedRequest struct {

	// The description of the download failed.
	Description string `protobuf:"bytes,1,opt,name=description,proto3" json:"description,omitempty"`
	// contains filtered or unexported fields
}

DownloadPeerFailedRequest represents peer download failed request of AnnouncePeerRequest.

func (*DownloadPeerFailedRequest) Descriptor deprecated added in v1.7.8

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

Deprecated: Use DownloadPeerFailedRequest.ProtoReflect.Descriptor instead.

func (*DownloadPeerFailedRequest) GetDescription added in v1.7.8

func (x *DownloadPeerFailedRequest) GetDescription() string

func (*DownloadPeerFailedRequest) ProtoMessage added in v1.7.8

func (*DownloadPeerFailedRequest) ProtoMessage()

func (*DownloadPeerFailedRequest) ProtoReflect added in v1.7.8

func (*DownloadPeerFailedRequest) Reset added in v1.7.8

func (x *DownloadPeerFailedRequest) Reset()

func (*DownloadPeerFailedRequest) String added in v1.7.8

func (x *DownloadPeerFailedRequest) String() string

func (*DownloadPeerFailedRequest) Validate added in v1.7.8

func (m *DownloadPeerFailedRequest) Validate() error

Validate checks the field values on DownloadPeerFailedRequest 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 (*DownloadPeerFailedRequest) ValidateAll added in v1.7.8

func (m *DownloadPeerFailedRequest) ValidateAll() error

ValidateAll checks the field values on DownloadPeerFailedRequest 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 DownloadPeerFailedRequestMultiError, or nil if none found.

type DownloadPeerFailedRequestMultiError added in v1.7.8

type DownloadPeerFailedRequestMultiError []error

DownloadPeerFailedRequestMultiError is an error wrapping multiple validation errors returned by DownloadPeerFailedRequest.ValidateAll() if the designated constraints aren't met.

func (DownloadPeerFailedRequestMultiError) AllErrors added in v1.7.8

AllErrors returns a list of validation violation errors.

func (DownloadPeerFailedRequestMultiError) Error added in v1.7.8

Error returns a concatenation of all the error messages it wraps.

type DownloadPeerFailedRequestValidationError added in v1.7.8

type DownloadPeerFailedRequestValidationError struct {
	// contains filtered or unexported fields
}

DownloadPeerFailedRequestValidationError is the validation error returned by DownloadPeerFailedRequest.Validate if the designated constraints aren't met.

func (DownloadPeerFailedRequestValidationError) Cause added in v1.7.8

Cause function returns cause value.

func (DownloadPeerFailedRequestValidationError) Error added in v1.7.8

Error satisfies the builtin error interface

func (DownloadPeerFailedRequestValidationError) ErrorName added in v1.7.8

ErrorName returns error name.

func (DownloadPeerFailedRequestValidationError) Field added in v1.7.8

Field function returns field value.

func (DownloadPeerFailedRequestValidationError) Key added in v1.7.8

Key function returns key value.

func (DownloadPeerFailedRequestValidationError) Reason added in v1.7.8

Reason function returns reason value.

type DownloadPeerFinishedRequest added in v1.4.1

type DownloadPeerFinishedRequest struct {

	// Total content length.
	ContentLength int64 `protobuf:"varint,1,opt,name=content_length,json=contentLength,proto3" json:"content_length,omitempty"`
	// Total piece count.
	PieceCount int32 `protobuf:"varint,2,opt,name=piece_count,json=pieceCount,proto3" json:"piece_count,omitempty"`
	// contains filtered or unexported fields
}

DownloadPeerFinishedRequest represents peer download finished request of AnnouncePeerRequest.

func (*DownloadPeerFinishedRequest) Descriptor deprecated added in v1.4.1

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

Deprecated: Use DownloadPeerFinishedRequest.ProtoReflect.Descriptor instead.

func (*DownloadPeerFinishedRequest) GetContentLength added in v1.4.1

func (x *DownloadPeerFinishedRequest) GetContentLength() int64

func (*DownloadPeerFinishedRequest) GetPieceCount added in v1.4.1

func (x *DownloadPeerFinishedRequest) GetPieceCount() int32

func (*DownloadPeerFinishedRequest) ProtoMessage added in v1.4.1

func (*DownloadPeerFinishedRequest) ProtoMessage()

func (*DownloadPeerFinishedRequest) ProtoReflect added in v1.4.1

func (*DownloadPeerFinishedRequest) Reset added in v1.4.1

func (x *DownloadPeerFinishedRequest) Reset()

func (*DownloadPeerFinishedRequest) String added in v1.4.1

func (x *DownloadPeerFinishedRequest) String() string

func (*DownloadPeerFinishedRequest) Validate added in v1.4.1

func (m *DownloadPeerFinishedRequest) Validate() error

Validate checks the field values on DownloadPeerFinishedRequest 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 (*DownloadPeerFinishedRequest) ValidateAll added in v1.4.1

func (m *DownloadPeerFinishedRequest) ValidateAll() error

ValidateAll checks the field values on DownloadPeerFinishedRequest 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 DownloadPeerFinishedRequestMultiError, or nil if none found.

type DownloadPeerFinishedRequestMultiError added in v1.4.1

type DownloadPeerFinishedRequestMultiError []error

DownloadPeerFinishedRequestMultiError is an error wrapping multiple validation errors returned by DownloadPeerFinishedRequest.ValidateAll() if the designated constraints aren't met.

func (DownloadPeerFinishedRequestMultiError) AllErrors added in v1.4.1

AllErrors returns a list of validation violation errors.

func (DownloadPeerFinishedRequestMultiError) Error added in v1.4.1

Error returns a concatenation of all the error messages it wraps.

type DownloadPeerFinishedRequestValidationError added in v1.4.1

type DownloadPeerFinishedRequestValidationError struct {
	// contains filtered or unexported fields
}

DownloadPeerFinishedRequestValidationError is the validation error returned by DownloadPeerFinishedRequest.Validate if the designated constraints aren't met.

func (DownloadPeerFinishedRequestValidationError) Cause added in v1.4.1

Cause function returns cause value.

func (DownloadPeerFinishedRequestValidationError) Error added in v1.4.1

Error satisfies the builtin error interface

func (DownloadPeerFinishedRequestValidationError) ErrorName added in v1.4.1

ErrorName returns error name.

func (DownloadPeerFinishedRequestValidationError) Field added in v1.4.1

Field function returns field value.

func (DownloadPeerFinishedRequestValidationError) Key added in v1.4.1

Key function returns key value.

func (DownloadPeerFinishedRequestValidationError) Reason added in v1.4.1

Reason function returns reason value.

type DownloadPeerStartedRequest added in v1.4.1

type DownloadPeerStartedRequest struct {
	// contains filtered or unexported fields
}

DownloadPeerStartedRequest represents peer download started request of AnnouncePeerRequest.

func (*DownloadPeerStartedRequest) Descriptor deprecated added in v1.4.1

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

Deprecated: Use DownloadPeerStartedRequest.ProtoReflect.Descriptor instead.

func (*DownloadPeerStartedRequest) ProtoMessage added in v1.4.1

func (*DownloadPeerStartedRequest) ProtoMessage()

func (*DownloadPeerStartedRequest) ProtoReflect added in v1.4.1

func (*DownloadPeerStartedRequest) Reset added in v1.4.1

func (x *DownloadPeerStartedRequest) Reset()

func (*DownloadPeerStartedRequest) String added in v1.4.1

func (x *DownloadPeerStartedRequest) String() string

func (*DownloadPeerStartedRequest) Validate added in v1.4.1

func (m *DownloadPeerStartedRequest) Validate() error

Validate checks the field values on DownloadPeerStartedRequest 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 (*DownloadPeerStartedRequest) ValidateAll added in v1.4.1

func (m *DownloadPeerStartedRequest) ValidateAll() error

ValidateAll checks the field values on DownloadPeerStartedRequest 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 DownloadPeerStartedRequestMultiError, or nil if none found.

type DownloadPeerStartedRequestMultiError added in v1.4.1

type DownloadPeerStartedRequestMultiError []error

DownloadPeerStartedRequestMultiError is an error wrapping multiple validation errors returned by DownloadPeerStartedRequest.ValidateAll() if the designated constraints aren't met.

func (DownloadPeerStartedRequestMultiError) AllErrors added in v1.4.1

AllErrors returns a list of validation violation errors.

func (DownloadPeerStartedRequestMultiError) Error added in v1.4.1

Error returns a concatenation of all the error messages it wraps.

type DownloadPeerStartedRequestValidationError added in v1.4.1

type DownloadPeerStartedRequestValidationError struct {
	// contains filtered or unexported fields
}

DownloadPeerStartedRequestValidationError is the validation error returned by DownloadPeerStartedRequest.Validate if the designated constraints aren't met.

func (DownloadPeerStartedRequestValidationError) Cause added in v1.4.1

Cause function returns cause value.

func (DownloadPeerStartedRequestValidationError) Error added in v1.4.1

Error satisfies the builtin error interface

func (DownloadPeerStartedRequestValidationError) ErrorName added in v1.4.1

ErrorName returns error name.

func (DownloadPeerStartedRequestValidationError) Field added in v1.4.1

Field function returns field value.

func (DownloadPeerStartedRequestValidationError) Key added in v1.4.1

Key function returns key value.

func (DownloadPeerStartedRequestValidationError) Reason added in v1.4.1

Reason function returns reason value.

type DownloadPieceBackToSourceFailedRequest added in v1.6.6

type DownloadPieceBackToSourceFailedRequest struct {

	// Piece info.
	Piece *v2.Piece `protobuf:"bytes,1,opt,name=piece,proto3" json:"piece,omitempty"`
	// Types that are assignable to Response:
	//
	//	*DownloadPieceBackToSourceFailedRequest_HttpResponse
	//	*DownloadPieceBackToSourceFailedRequest_HdfsResponse
	//	*DownloadPieceBackToSourceFailedRequest_S3Response
	//	*DownloadPieceBackToSourceFailedRequest_OssResponse
	Response isDownloadPieceBackToSourceFailedRequest_Response `protobuf_oneof:"response"`
	// contains filtered or unexported fields
}

DownloadPieceBackToSourceFailedRequest downloads piece back-to-source failed request of AnnouncePeerRequest.

func (*DownloadPieceBackToSourceFailedRequest) Descriptor deprecated added in v1.6.6

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

Deprecated: Use DownloadPieceBackToSourceFailedRequest.ProtoReflect.Descriptor instead.

func (*DownloadPieceBackToSourceFailedRequest) GetHdfsResponse added in v1.7.9

func (*DownloadPieceBackToSourceFailedRequest) GetHttpResponse added in v1.7.9

func (*DownloadPieceBackToSourceFailedRequest) GetOssResponse added in v1.7.9

func (*DownloadPieceBackToSourceFailedRequest) GetPiece added in v1.7.9

func (*DownloadPieceBackToSourceFailedRequest) GetResponse added in v1.7.9

func (m *DownloadPieceBackToSourceFailedRequest) GetResponse() isDownloadPieceBackToSourceFailedRequest_Response

func (*DownloadPieceBackToSourceFailedRequest) GetS3Response added in v1.7.9

func (*DownloadPieceBackToSourceFailedRequest) ProtoMessage added in v1.6.6

func (*DownloadPieceBackToSourceFailedRequest) ProtoReflect added in v1.6.6

func (*DownloadPieceBackToSourceFailedRequest) Reset added in v1.6.6

func (*DownloadPieceBackToSourceFailedRequest) String added in v1.6.6

func (*DownloadPieceBackToSourceFailedRequest) Validate added in v1.6.6

Validate checks the field values on DownloadPieceBackToSourceFailedRequest 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 (*DownloadPieceBackToSourceFailedRequest) ValidateAll added in v1.6.6

ValidateAll checks the field values on DownloadPieceBackToSourceFailedRequest 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 DownloadPieceBackToSourceFailedRequestMultiError, or nil if none found.

type DownloadPieceBackToSourceFailedRequestMultiError added in v1.6.6

type DownloadPieceBackToSourceFailedRequestMultiError []error

DownloadPieceBackToSourceFailedRequestMultiError is an error wrapping multiple validation errors returned by DownloadPieceBackToSourceFailedRequest.ValidateAll() if the designated constraints aren't met.

func (DownloadPieceBackToSourceFailedRequestMultiError) AllErrors added in v1.6.6

AllErrors returns a list of validation violation errors.

func (DownloadPieceBackToSourceFailedRequestMultiError) Error added in v1.6.6

Error returns a concatenation of all the error messages it wraps.

type DownloadPieceBackToSourceFailedRequestValidationError added in v1.6.6

type DownloadPieceBackToSourceFailedRequestValidationError struct {
	// contains filtered or unexported fields
}

DownloadPieceBackToSourceFailedRequestValidationError is the validation error returned by DownloadPieceBackToSourceFailedRequest.Validate if the designated constraints aren't met.

func (DownloadPieceBackToSourceFailedRequestValidationError) Cause added in v1.6.6

Cause function returns cause value.

func (DownloadPieceBackToSourceFailedRequestValidationError) Error added in v1.6.6

Error satisfies the builtin error interface

func (DownloadPieceBackToSourceFailedRequestValidationError) ErrorName added in v1.6.6

ErrorName returns error name.

func (DownloadPieceBackToSourceFailedRequestValidationError) Field added in v1.6.6

Field function returns field value.

func (DownloadPieceBackToSourceFailedRequestValidationError) Key added in v1.6.6

Key function returns key value.

func (DownloadPieceBackToSourceFailedRequestValidationError) Reason added in v1.6.6

Reason function returns reason value.

type DownloadPieceBackToSourceFailedRequest_HdfsResponse added in v1.7.9

type DownloadPieceBackToSourceFailedRequest_HdfsResponse struct {
	HdfsResponse *HDFSResponse `protobuf:"bytes,3,opt,name=hdfs_response,json=hdfsResponse,proto3,oneof"`
}

type DownloadPieceBackToSourceFailedRequest_HttpResponse added in v1.7.9

type DownloadPieceBackToSourceFailedRequest_HttpResponse struct {
	HttpResponse *HTTPResponse `protobuf:"bytes,2,opt,name=http_response,json=httpResponse,proto3,oneof"`
}

type DownloadPieceBackToSourceFailedRequest_OssResponse added in v1.7.9

type DownloadPieceBackToSourceFailedRequest_OssResponse struct {
	OssResponse *OSSResponse `protobuf:"bytes,5,opt,name=oss_response,json=ossResponse,proto3,oneof"`
}

type DownloadPieceBackToSourceFailedRequest_S3Response added in v1.7.9

type DownloadPieceBackToSourceFailedRequest_S3Response struct {
	S3Response *S3Response `protobuf:"bytes,4,opt,name=s3_response,json=s3Response,proto3,oneof"`
}

type DownloadPieceBackToSourceFinishedRequest added in v1.4.1

type DownloadPieceBackToSourceFinishedRequest struct {

	// Piece info.
	Piece *v2.Piece `protobuf:"bytes,1,opt,name=piece,proto3" json:"piece,omitempty"`
	// contains filtered or unexported fields
}

DownloadPieceBackToSourceFinishedRequest represents piece download back-to-source finished request of AnnouncePeerRequest.

func (*DownloadPieceBackToSourceFinishedRequest) Descriptor deprecated added in v1.4.1

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

Deprecated: Use DownloadPieceBackToSourceFinishedRequest.ProtoReflect.Descriptor instead.

func (*DownloadPieceBackToSourceFinishedRequest) GetPiece added in v1.4.1

func (*DownloadPieceBackToSourceFinishedRequest) ProtoMessage added in v1.4.1

func (*DownloadPieceBackToSourceFinishedRequest) ProtoReflect added in v1.4.1

func (*DownloadPieceBackToSourceFinishedRequest) Reset added in v1.4.1

func (*DownloadPieceBackToSourceFinishedRequest) String added in v1.4.1

func (*DownloadPieceBackToSourceFinishedRequest) Validate added in v1.4.1

Validate checks the field values on DownloadPieceBackToSourceFinishedRequest 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 (*DownloadPieceBackToSourceFinishedRequest) ValidateAll added in v1.4.1

ValidateAll checks the field values on DownloadPieceBackToSourceFinishedRequest 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 DownloadPieceBackToSourceFinishedRequestMultiError, or nil if none found.

type DownloadPieceBackToSourceFinishedRequestMultiError added in v1.4.1

type DownloadPieceBackToSourceFinishedRequestMultiError []error

DownloadPieceBackToSourceFinishedRequestMultiError is an error wrapping multiple validation errors returned by DownloadPieceBackToSourceFinishedRequest.ValidateAll() if the designated constraints aren't met.

func (DownloadPieceBackToSourceFinishedRequestMultiError) AllErrors added in v1.4.1

AllErrors returns a list of validation violation errors.

func (DownloadPieceBackToSourceFinishedRequestMultiError) Error added in v1.4.1

Error returns a concatenation of all the error messages it wraps.

type DownloadPieceBackToSourceFinishedRequestValidationError added in v1.4.1

type DownloadPieceBackToSourceFinishedRequestValidationError struct {
	// contains filtered or unexported fields
}

DownloadPieceBackToSourceFinishedRequestValidationError is the validation error returned by DownloadPieceBackToSourceFinishedRequest.Validate if the designated constraints aren't met.

func (DownloadPieceBackToSourceFinishedRequestValidationError) Cause added in v1.4.1

Cause function returns cause value.

func (DownloadPieceBackToSourceFinishedRequestValidationError) Error added in v1.4.1

Error satisfies the builtin error interface

func (DownloadPieceBackToSourceFinishedRequestValidationError) ErrorName added in v1.4.1

ErrorName returns error name.

func (DownloadPieceBackToSourceFinishedRequestValidationError) Field added in v1.4.1

Field function returns field value.

func (DownloadPieceBackToSourceFinishedRequestValidationError) Key added in v1.4.1

Key function returns key value.

func (DownloadPieceBackToSourceFinishedRequestValidationError) Reason added in v1.4.1

Reason function returns reason value.

type DownloadPieceFailedRequest added in v1.6.6

type DownloadPieceFailedRequest struct {

	// Piece info.
	Piece *v2.Piece `protobuf:"bytes,1,opt,name=piece,proto3" json:"piece,omitempty"`
	// Temporary indicates whether the error is temporary.
	Temporary bool `protobuf:"varint,2,opt,name=temporary,proto3" json:"temporary,omitempty"`
	// contains filtered or unexported fields
}

DownloadPieceFailedRequest downloads piece failed request of AnnouncePeerRequest.

func (*DownloadPieceFailedRequest) Descriptor deprecated added in v1.6.6

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

Deprecated: Use DownloadPieceFailedRequest.ProtoReflect.Descriptor instead.

func (*DownloadPieceFailedRequest) GetPiece added in v1.7.9

func (x *DownloadPieceFailedRequest) GetPiece() *v2.Piece

func (*DownloadPieceFailedRequest) GetTemporary added in v1.7.7

func (x *DownloadPieceFailedRequest) GetTemporary() bool

func (*DownloadPieceFailedRequest) ProtoMessage added in v1.6.6

func (*DownloadPieceFailedRequest) ProtoMessage()

func (*DownloadPieceFailedRequest) ProtoReflect added in v1.6.6

func (*DownloadPieceFailedRequest) Reset added in v1.6.6

func (x *DownloadPieceFailedRequest) Reset()

func (*DownloadPieceFailedRequest) String added in v1.6.6

func (x *DownloadPieceFailedRequest) String() string

func (*DownloadPieceFailedRequest) Validate added in v1.6.6

func (m *DownloadPieceFailedRequest) Validate() error

Validate checks the field values on DownloadPieceFailedRequest 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 (*DownloadPieceFailedRequest) ValidateAll added in v1.6.6

func (m *DownloadPieceFailedRequest) ValidateAll() error

ValidateAll checks the field values on DownloadPieceFailedRequest 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 DownloadPieceFailedRequestMultiError, or nil if none found.

type DownloadPieceFailedRequestMultiError added in v1.6.6

type DownloadPieceFailedRequestMultiError []error

DownloadPieceFailedRequestMultiError is an error wrapping multiple validation errors returned by DownloadPieceFailedRequest.ValidateAll() if the designated constraints aren't met.

func (DownloadPieceFailedRequestMultiError) AllErrors added in v1.6.6

AllErrors returns a list of validation violation errors.

func (DownloadPieceFailedRequestMultiError) Error added in v1.6.6

Error returns a concatenation of all the error messages it wraps.

type DownloadPieceFailedRequestValidationError added in v1.6.6

type DownloadPieceFailedRequestValidationError struct {
	// contains filtered or unexported fields
}

DownloadPieceFailedRequestValidationError is the validation error returned by DownloadPieceFailedRequest.Validate if the designated constraints aren't met.

func (DownloadPieceFailedRequestValidationError) Cause added in v1.6.6

Cause function returns cause value.

func (DownloadPieceFailedRequestValidationError) Error added in v1.6.6

Error satisfies the builtin error interface

func (DownloadPieceFailedRequestValidationError) ErrorName added in v1.6.6

ErrorName returns error name.

func (DownloadPieceFailedRequestValidationError) Field added in v1.6.6

Field function returns field value.

func (DownloadPieceFailedRequestValidationError) Key added in v1.6.6

Key function returns key value.

func (DownloadPieceFailedRequestValidationError) Reason added in v1.6.6

Reason function returns reason value.

type DownloadPieceFinishedRequest added in v1.4.1

type DownloadPieceFinishedRequest struct {

	// Piece info.
	Piece *v2.Piece `protobuf:"bytes,1,opt,name=piece,proto3" json:"piece,omitempty"`
	// contains filtered or unexported fields
}

DownloadPieceFinishedRequest represents piece download finished request of AnnouncePeerRequest.

func (*DownloadPieceFinishedRequest) Descriptor deprecated added in v1.4.1

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

Deprecated: Use DownloadPieceFinishedRequest.ProtoReflect.Descriptor instead.

func (*DownloadPieceFinishedRequest) GetPiece added in v1.4.1

func (x *DownloadPieceFinishedRequest) GetPiece() *v2.Piece

func (*DownloadPieceFinishedRequest) ProtoMessage added in v1.4.1

func (*DownloadPieceFinishedRequest) ProtoMessage()

func (*DownloadPieceFinishedRequest) ProtoReflect added in v1.4.1

func (*DownloadPieceFinishedRequest) Reset added in v1.4.1

func (x *DownloadPieceFinishedRequest) Reset()

func (*DownloadPieceFinishedRequest) String added in v1.4.1

func (*DownloadPieceFinishedRequest) Validate added in v1.4.1

func (m *DownloadPieceFinishedRequest) Validate() error

Validate checks the field values on DownloadPieceFinishedRequest 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 (*DownloadPieceFinishedRequest) ValidateAll added in v1.4.1

func (m *DownloadPieceFinishedRequest) ValidateAll() error

ValidateAll checks the field values on DownloadPieceFinishedRequest 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 DownloadPieceFinishedRequestMultiError, or nil if none found.

type DownloadPieceFinishedRequestMultiError added in v1.4.1

type DownloadPieceFinishedRequestMultiError []error

DownloadPieceFinishedRequestMultiError is an error wrapping multiple validation errors returned by DownloadPieceFinishedRequest.ValidateAll() if the designated constraints aren't met.

func (DownloadPieceFinishedRequestMultiError) AllErrors added in v1.4.1

AllErrors returns a list of validation violation errors.

func (DownloadPieceFinishedRequestMultiError) Error added in v1.4.1

Error returns a concatenation of all the error messages it wraps.

type DownloadPieceFinishedRequestValidationError added in v1.4.1

type DownloadPieceFinishedRequestValidationError struct {
	// contains filtered or unexported fields
}

DownloadPieceFinishedRequestValidationError is the validation error returned by DownloadPieceFinishedRequest.Validate if the designated constraints aren't met.

func (DownloadPieceFinishedRequestValidationError) Cause added in v1.4.1

Cause function returns cause value.

func (DownloadPieceFinishedRequestValidationError) Error added in v1.4.1

Error satisfies the builtin error interface

func (DownloadPieceFinishedRequestValidationError) ErrorName added in v1.4.1

ErrorName returns error name.

func (DownloadPieceFinishedRequestValidationError) Field added in v1.4.1

Field function returns field value.

func (DownloadPieceFinishedRequestValidationError) Key added in v1.4.1

Key function returns key value.

func (DownloadPieceFinishedRequestValidationError) Reason added in v1.4.1

Reason function returns reason value.

type EmptyTaskResponse added in v1.7.1

type EmptyTaskResponse struct {
	// contains filtered or unexported fields
}

EmptyTaskResponse represents empty task response of AnnouncePeerResponse.

func (*EmptyTaskResponse) Descriptor deprecated added in v1.7.1

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

Deprecated: Use EmptyTaskResponse.ProtoReflect.Descriptor instead.

func (*EmptyTaskResponse) ProtoMessage added in v1.7.1

func (*EmptyTaskResponse) ProtoMessage()

func (*EmptyTaskResponse) ProtoReflect added in v1.7.1

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

func (*EmptyTaskResponse) Reset added in v1.7.1

func (x *EmptyTaskResponse) Reset()

func (*EmptyTaskResponse) String added in v1.7.1

func (x *EmptyTaskResponse) String() string

func (*EmptyTaskResponse) Validate added in v1.7.1

func (m *EmptyTaskResponse) Validate() error

Validate checks the field values on EmptyTaskResponse 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 (*EmptyTaskResponse) ValidateAll added in v1.7.1

func (m *EmptyTaskResponse) ValidateAll() error

ValidateAll checks the field values on EmptyTaskResponse 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 EmptyTaskResponseMultiError, or nil if none found.

type EmptyTaskResponseMultiError added in v1.7.1

type EmptyTaskResponseMultiError []error

EmptyTaskResponseMultiError is an error wrapping multiple validation errors returned by EmptyTaskResponse.ValidateAll() if the designated constraints aren't met.

func (EmptyTaskResponseMultiError) AllErrors added in v1.7.1

func (m EmptyTaskResponseMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (EmptyTaskResponseMultiError) Error added in v1.7.1

Error returns a concatenation of all the error messages it wraps.

type EmptyTaskResponseValidationError added in v1.7.1

type EmptyTaskResponseValidationError struct {
	// contains filtered or unexported fields
}

EmptyTaskResponseValidationError is the validation error returned by EmptyTaskResponse.Validate if the designated constraints aren't met.

func (EmptyTaskResponseValidationError) Cause added in v1.7.1

Cause function returns cause value.

func (EmptyTaskResponseValidationError) Error added in v1.7.1

Error satisfies the builtin error interface

func (EmptyTaskResponseValidationError) ErrorName added in v1.7.1

ErrorName returns error name.

func (EmptyTaskResponseValidationError) Field added in v1.7.1

Field function returns field value.

func (EmptyTaskResponseValidationError) Key added in v1.7.1

Key function returns key value.

func (EmptyTaskResponseValidationError) Reason added in v1.7.1

Reason function returns reason value.

type ExchangePeerRequest

type ExchangePeerRequest struct {

	// Host id.
	HostId string `protobuf:"bytes,1,opt,name=host_id,json=hostId,proto3" json:"host_id,omitempty"`
	// Task id.
	TaskId string `protobuf:"bytes,2,opt,name=task_id,json=taskId,proto3" json:"task_id,omitempty"`
	// Peer id.
	PeerId string `protobuf:"bytes,3,opt,name=peer_id,json=peerId,proto3" json:"peer_id,omitempty"`
	// contains filtered or unexported fields
}

TODO exchange peer request definition. ExchangePeerRequest represents request of ExchangePeer.

func (*ExchangePeerRequest) Descriptor deprecated

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

Deprecated: Use ExchangePeerRequest.ProtoReflect.Descriptor instead.

func (*ExchangePeerRequest) GetHostId added in v1.6.8

func (x *ExchangePeerRequest) GetHostId() string

func (*ExchangePeerRequest) GetPeerId added in v1.1.6

func (x *ExchangePeerRequest) GetPeerId() string

func (*ExchangePeerRequest) GetTaskId added in v1.1.6

func (x *ExchangePeerRequest) GetTaskId() string

func (*ExchangePeerRequest) ProtoMessage

func (*ExchangePeerRequest) ProtoMessage()

func (*ExchangePeerRequest) ProtoReflect

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

func (*ExchangePeerRequest) Reset

func (x *ExchangePeerRequest) Reset()

func (*ExchangePeerRequest) String

func (x *ExchangePeerRequest) String() string

func (*ExchangePeerRequest) Validate

func (m *ExchangePeerRequest) Validate() error

Validate checks the field values on ExchangePeerRequest 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 (*ExchangePeerRequest) ValidateAll

func (m *ExchangePeerRequest) ValidateAll() error

ValidateAll checks the field values on ExchangePeerRequest 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 ExchangePeerRequestMultiError, or nil if none found.

type ExchangePeerRequestMultiError

type ExchangePeerRequestMultiError []error

ExchangePeerRequestMultiError is an error wrapping multiple validation errors returned by ExchangePeerRequest.ValidateAll() if the designated constraints aren't met.

func (ExchangePeerRequestMultiError) AllErrors

func (m ExchangePeerRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (ExchangePeerRequestMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type ExchangePeerRequestValidationError

type ExchangePeerRequestValidationError struct {
	// contains filtered or unexported fields
}

ExchangePeerRequestValidationError is the validation error returned by ExchangePeerRequest.Validate if the designated constraints aren't met.

func (ExchangePeerRequestValidationError) Cause

Cause function returns cause value.

func (ExchangePeerRequestValidationError) Error

Error satisfies the builtin error interface

func (ExchangePeerRequestValidationError) ErrorName

ErrorName returns error name.

func (ExchangePeerRequestValidationError) Field

Field function returns field value.

func (ExchangePeerRequestValidationError) Key

Key function returns key value.

func (ExchangePeerRequestValidationError) Reason

Reason function returns reason value.

type ExchangePeerResponse

type ExchangePeerResponse struct {
	// contains filtered or unexported fields
}

TODO exchange peer response definition. ExchangePeerResponse represents response of ExchangePeer.

func (*ExchangePeerResponse) Descriptor deprecated

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

Deprecated: Use ExchangePeerResponse.ProtoReflect.Descriptor instead.

func (*ExchangePeerResponse) ProtoMessage

func (*ExchangePeerResponse) ProtoMessage()

func (*ExchangePeerResponse) ProtoReflect

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

func (*ExchangePeerResponse) Reset

func (x *ExchangePeerResponse) Reset()

func (*ExchangePeerResponse) String

func (x *ExchangePeerResponse) String() string

func (*ExchangePeerResponse) Validate

func (m *ExchangePeerResponse) Validate() error

Validate checks the field values on ExchangePeerResponse 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 (*ExchangePeerResponse) ValidateAll

func (m *ExchangePeerResponse) ValidateAll() error

ValidateAll checks the field values on ExchangePeerResponse 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 ExchangePeerResponseMultiError, or nil if none found.

type ExchangePeerResponseMultiError

type ExchangePeerResponseMultiError []error

ExchangePeerResponseMultiError is an error wrapping multiple validation errors returned by ExchangePeerResponse.ValidateAll() if the designated constraints aren't met.

func (ExchangePeerResponseMultiError) AllErrors

func (m ExchangePeerResponseMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (ExchangePeerResponseMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type ExchangePeerResponseValidationError

type ExchangePeerResponseValidationError struct {
	// contains filtered or unexported fields
}

ExchangePeerResponseValidationError is the validation error returned by ExchangePeerResponse.Validate if the designated constraints aren't met.

func (ExchangePeerResponseValidationError) Cause

Cause function returns cause value.

func (ExchangePeerResponseValidationError) Error

Error satisfies the builtin error interface

func (ExchangePeerResponseValidationError) ErrorName

ErrorName returns error name.

func (ExchangePeerResponseValidationError) Field

Field function returns field value.

func (ExchangePeerResponseValidationError) Key

Key function returns key value.

func (ExchangePeerResponseValidationError) Reason

Reason function returns reason value.

type FailedProbe added in v1.9.0

type FailedProbe struct {

	// Destination host metadata.
	Host *v2.Host `protobuf:"bytes,1,opt,name=host,proto3" json:"host,omitempty"`
	// The description of probing failed.
	Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"`
	// contains filtered or unexported fields
}

FailedProbe information.

func (*FailedProbe) Descriptor deprecated added in v1.9.0

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

Deprecated: Use FailedProbe.ProtoReflect.Descriptor instead.

func (*FailedProbe) GetDescription added in v1.9.0

func (x *FailedProbe) GetDescription() string

func (*FailedProbe) GetHost added in v1.9.0

func (x *FailedProbe) GetHost() *v2.Host

func (*FailedProbe) ProtoMessage added in v1.9.0

func (*FailedProbe) ProtoMessage()

func (*FailedProbe) ProtoReflect added in v1.9.0

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

func (*FailedProbe) Reset added in v1.9.0

func (x *FailedProbe) Reset()

func (*FailedProbe) String added in v1.9.0

func (x *FailedProbe) String() string

func (*FailedProbe) Validate added in v1.9.0

func (m *FailedProbe) Validate() error

Validate checks the field values on FailedProbe 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 (*FailedProbe) ValidateAll added in v1.9.0

func (m *FailedProbe) ValidateAll() error

ValidateAll checks the field values on FailedProbe 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 FailedProbeMultiError, or nil if none found.

type FailedProbeMultiError added in v1.9.0

type FailedProbeMultiError []error

FailedProbeMultiError is an error wrapping multiple validation errors returned by FailedProbe.ValidateAll() if the designated constraints aren't met.

func (FailedProbeMultiError) AllErrors added in v1.9.0

func (m FailedProbeMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (FailedProbeMultiError) Error added in v1.9.0

func (m FailedProbeMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type FailedProbeValidationError added in v1.9.0

type FailedProbeValidationError struct {
	// contains filtered or unexported fields
}

FailedProbeValidationError is the validation error returned by FailedProbe.Validate if the designated constraints aren't met.

func (FailedProbeValidationError) Cause added in v1.9.0

Cause function returns cause value.

func (FailedProbeValidationError) Error added in v1.9.0

Error satisfies the builtin error interface

func (FailedProbeValidationError) ErrorName added in v1.9.0

func (e FailedProbeValidationError) ErrorName() string

ErrorName returns error name.

func (FailedProbeValidationError) Field added in v1.9.0

Field function returns field value.

func (FailedProbeValidationError) Key added in v1.9.0

Key function returns key value.

func (FailedProbeValidationError) Reason added in v1.9.0

Reason function returns reason value.

type HDFSResponse added in v1.7.9

type HDFSResponse struct {
	// contains filtered or unexported fields
}

HDFSResponse represents hdfs protocol response of DownloadPieceBackToSourceFailedRequest.

func (*HDFSResponse) Descriptor deprecated added in v1.7.9

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

Deprecated: Use HDFSResponse.ProtoReflect.Descriptor instead.

func (*HDFSResponse) ProtoMessage added in v1.7.9

func (*HDFSResponse) ProtoMessage()

func (*HDFSResponse) ProtoReflect added in v1.7.9

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

func (*HDFSResponse) Reset added in v1.7.9

func (x *HDFSResponse) Reset()

func (*HDFSResponse) String added in v1.7.9

func (x *HDFSResponse) String() string

func (*HDFSResponse) Validate added in v1.7.9

func (m *HDFSResponse) Validate() error

Validate checks the field values on HDFSResponse 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 (*HDFSResponse) ValidateAll added in v1.7.9

func (m *HDFSResponse) ValidateAll() error

ValidateAll checks the field values on HDFSResponse 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 HDFSResponseMultiError, or nil if none found.

type HDFSResponseMultiError added in v1.7.9

type HDFSResponseMultiError []error

HDFSResponseMultiError is an error wrapping multiple validation errors returned by HDFSResponse.ValidateAll() if the designated constraints aren't met.

func (HDFSResponseMultiError) AllErrors added in v1.7.9

func (m HDFSResponseMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (HDFSResponseMultiError) Error added in v1.7.9

func (m HDFSResponseMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type HDFSResponseValidationError added in v1.7.9

type HDFSResponseValidationError struct {
	// contains filtered or unexported fields
}

HDFSResponseValidationError is the validation error returned by HDFSResponse.Validate if the designated constraints aren't met.

func (HDFSResponseValidationError) Cause added in v1.7.9

Cause function returns cause value.

func (HDFSResponseValidationError) Error added in v1.7.9

Error satisfies the builtin error interface

func (HDFSResponseValidationError) ErrorName added in v1.7.9

func (e HDFSResponseValidationError) ErrorName() string

ErrorName returns error name.

func (HDFSResponseValidationError) Field added in v1.7.9

Field function returns field value.

func (HDFSResponseValidationError) Key added in v1.7.9

Key function returns key value.

func (HDFSResponseValidationError) Reason added in v1.7.9

Reason function returns reason value.

type HTTPResponse added in v1.7.9

type HTTPResponse struct {

	// HTTP Response Header.
	Header map[string]string `` /* 153-byte string literal not displayed */
	// HTTP Status Code.
	StatusCode int32 `protobuf:"varint,2,opt,name=status_code,json=statusCode,proto3" json:"status_code,omitempty"`
	// HTTP Status.
	Status string `protobuf:"bytes,3,opt,name=status,proto3" json:"status,omitempty"`
	// contains filtered or unexported fields
}

HTTPResponse represents http protocol response of DownloadPieceBackToSourceFailedRequest.

func (*HTTPResponse) Descriptor deprecated added in v1.7.9

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

Deprecated: Use HTTPResponse.ProtoReflect.Descriptor instead.

func (*HTTPResponse) GetHeader added in v1.7.9

func (x *HTTPResponse) GetHeader() map[string]string

func (*HTTPResponse) GetStatus added in v1.7.9

func (x *HTTPResponse) GetStatus() string

func (*HTTPResponse) GetStatusCode added in v1.7.9

func (x *HTTPResponse) GetStatusCode() int32

func (*HTTPResponse) ProtoMessage added in v1.7.9

func (*HTTPResponse) ProtoMessage()

func (*HTTPResponse) ProtoReflect added in v1.7.9

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

func (*HTTPResponse) Reset added in v1.7.9

func (x *HTTPResponse) Reset()

func (*HTTPResponse) String added in v1.7.9

func (x *HTTPResponse) String() string

func (*HTTPResponse) Validate added in v1.7.9

func (m *HTTPResponse) Validate() error

Validate checks the field values on HTTPResponse 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 (*HTTPResponse) ValidateAll added in v1.7.9

func (m *HTTPResponse) ValidateAll() error

ValidateAll checks the field values on HTTPResponse 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 HTTPResponseMultiError, or nil if none found.

type HTTPResponseMultiError added in v1.7.9

type HTTPResponseMultiError []error

HTTPResponseMultiError is an error wrapping multiple validation errors returned by HTTPResponse.ValidateAll() if the designated constraints aren't met.

func (HTTPResponseMultiError) AllErrors added in v1.7.9

func (m HTTPResponseMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (HTTPResponseMultiError) Error added in v1.7.9

func (m HTTPResponseMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type HTTPResponseValidationError added in v1.7.9

type HTTPResponseValidationError struct {
	// contains filtered or unexported fields
}

HTTPResponseValidationError is the validation error returned by HTTPResponse.Validate if the designated constraints aren't met.

func (HTTPResponseValidationError) Cause added in v1.7.9

Cause function returns cause value.

func (HTTPResponseValidationError) Error added in v1.7.9

Error satisfies the builtin error interface

func (HTTPResponseValidationError) ErrorName added in v1.7.9

func (e HTTPResponseValidationError) ErrorName() string

ErrorName returns error name.

func (HTTPResponseValidationError) Field added in v1.7.9

Field function returns field value.

func (HTTPResponseValidationError) Key added in v1.7.9

Key function returns key value.

func (HTTPResponseValidationError) Reason added in v1.7.9

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

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

Cause function returns cause value.

func (LeaveHostRequestValidationError) Error added in v1.2.2

Error satisfies the builtin error interface

func (LeaveHostRequestValidationError) ErrorName added in v1.2.2

ErrorName returns error name.

func (LeaveHostRequestValidationError) Field added in v1.2.2

Field function returns field value.

func (LeaveHostRequestValidationError) Key added in v1.2.2

Key function returns key value.

func (LeaveHostRequestValidationError) Reason added in v1.2.2

Reason function returns reason value.

type LeavePeerRequest

type LeavePeerRequest struct {

	// Host id.
	HostId string `protobuf:"bytes,1,opt,name=host_id,json=hostId,proto3" json:"host_id,omitempty"`
	// Task id.
	TaskId string `protobuf:"bytes,2,opt,name=task_id,json=taskId,proto3" json:"task_id,omitempty"`
	// Peer id.
	PeerId string `protobuf:"bytes,3,opt,name=peer_id,json=peerId,proto3" json:"peer_id,omitempty"`
	// contains filtered or unexported fields
}

LeavePeerRequest represents request of LeavePeer.

func (*LeavePeerRequest) Descriptor deprecated

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

Deprecated: Use LeavePeerRequest.ProtoReflect.Descriptor instead.

func (*LeavePeerRequest) GetHostId added in v1.6.8

func (x *LeavePeerRequest) GetHostId() string

func (*LeavePeerRequest) GetPeerId

func (x *LeavePeerRequest) GetPeerId() string

func (*LeavePeerRequest) GetTaskId added in v1.1.6

func (x *LeavePeerRequest) GetTaskId() string

func (*LeavePeerRequest) ProtoMessage

func (*LeavePeerRequest) ProtoMessage()

func (*LeavePeerRequest) ProtoReflect

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

func (*LeavePeerRequest) Reset

func (x *LeavePeerRequest) Reset()

func (*LeavePeerRequest) String

func (x *LeavePeerRequest) String() string

func (*LeavePeerRequest) Validate

func (m *LeavePeerRequest) Validate() error

Validate checks the field values on LeavePeerRequest 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 (*LeavePeerRequest) ValidateAll

func (m *LeavePeerRequest) ValidateAll() error

ValidateAll checks the field values on LeavePeerRequest 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 LeavePeerRequestMultiError, or nil if none found.

type LeavePeerRequestMultiError

type LeavePeerRequestMultiError []error

LeavePeerRequestMultiError is an error wrapping multiple validation errors returned by LeavePeerRequest.ValidateAll() if the designated constraints aren't met.

func (LeavePeerRequestMultiError) AllErrors

func (m LeavePeerRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (LeavePeerRequestMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type LeavePeerRequestValidationError

type LeavePeerRequestValidationError struct {
	// contains filtered or unexported fields
}

LeavePeerRequestValidationError is the validation error returned by LeavePeerRequest.Validate if the designated constraints aren't met.

func (LeavePeerRequestValidationError) Cause

Cause function returns cause value.

func (LeavePeerRequestValidationError) Error

Error satisfies the builtin error interface

func (LeavePeerRequestValidationError) ErrorName

ErrorName returns error name.

func (LeavePeerRequestValidationError) Field

Field function returns field value.

func (LeavePeerRequestValidationError) Key

Key function returns key value.

func (LeavePeerRequestValidationError) Reason

Reason function returns reason value.

type NeedBackToSourceResponse

type NeedBackToSourceResponse struct {

	// The description of the back-to-source reason.
	Description string `protobuf:"bytes,1,opt,name=description,proto3" json:"description,omitempty"`
	// contains filtered or unexported fields
}

NeedBackToSourceResponse represents need back-to-source response of AnnouncePeerResponse.

func (*NeedBackToSourceResponse) Descriptor deprecated

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

Deprecated: Use NeedBackToSourceResponse.ProtoReflect.Descriptor instead.

func (*NeedBackToSourceResponse) GetDescription added in v1.6.8

func (x *NeedBackToSourceResponse) GetDescription() string

func (*NeedBackToSourceResponse) ProtoMessage

func (*NeedBackToSourceResponse) ProtoMessage()

func (*NeedBackToSourceResponse) ProtoReflect

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

func (*NeedBackToSourceResponse) Reset

func (x *NeedBackToSourceResponse) Reset()

func (*NeedBackToSourceResponse) String

func (x *NeedBackToSourceResponse) String() string

func (*NeedBackToSourceResponse) Validate

func (m *NeedBackToSourceResponse) Validate() error

Validate checks the field values on NeedBackToSourceResponse 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 (*NeedBackToSourceResponse) ValidateAll

func (m *NeedBackToSourceResponse) ValidateAll() error

ValidateAll checks the field values on NeedBackToSourceResponse 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 NeedBackToSourceResponseMultiError, or nil if none found.

type NeedBackToSourceResponseMultiError

type NeedBackToSourceResponseMultiError []error

NeedBackToSourceResponseMultiError is an error wrapping multiple validation errors returned by NeedBackToSourceResponse.ValidateAll() if the designated constraints aren't met.

func (NeedBackToSourceResponseMultiError) AllErrors

func (m NeedBackToSourceResponseMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (NeedBackToSourceResponseMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type NeedBackToSourceResponseValidationError

type NeedBackToSourceResponseValidationError struct {
	// contains filtered or unexported fields
}

NeedBackToSourceResponseValidationError is the validation error returned by NeedBackToSourceResponse.Validate if the designated constraints aren't met.

func (NeedBackToSourceResponseValidationError) Cause

Cause function returns cause value.

func (NeedBackToSourceResponseValidationError) Error

Error satisfies the builtin error interface

func (NeedBackToSourceResponseValidationError) ErrorName

ErrorName returns error name.

func (NeedBackToSourceResponseValidationError) Field

Field function returns field value.

func (NeedBackToSourceResponseValidationError) Key

Key function returns key value.

func (NeedBackToSourceResponseValidationError) Reason

Reason function returns reason value.

type NormalTaskResponse

type NormalTaskResponse struct {

	// Candidate parents.
	CandidateParents []*v2.Peer `protobuf:"bytes,1,rep,name=candidate_parents,json=candidateParents,proto3" json:"candidate_parents,omitempty"`
	// Concurrent downloading piece count from the peers.
	ConcurrentPieceCount int32 `protobuf:"varint,2,opt,name=concurrent_piece_count,json=concurrentPieceCount,proto3" json:"concurrent_piece_count,omitempty"`
	// contains filtered or unexported fields
}

NormalTaskResponse represents normal task response of AnnouncePeerResponse.

func (*NormalTaskResponse) Descriptor deprecated

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

Deprecated: Use NormalTaskResponse.ProtoReflect.Descriptor instead.

func (*NormalTaskResponse) GetCandidateParents

func (x *NormalTaskResponse) GetCandidateParents() []*v2.Peer

func (*NormalTaskResponse) GetConcurrentPieceCount added in v1.5.4

func (x *NormalTaskResponse) GetConcurrentPieceCount() int32

func (*NormalTaskResponse) ProtoMessage

func (*NormalTaskResponse) ProtoMessage()

func (*NormalTaskResponse) ProtoReflect

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

func (*NormalTaskResponse) Reset

func (x *NormalTaskResponse) Reset()

func (*NormalTaskResponse) String

func (x *NormalTaskResponse) String() string

func (*NormalTaskResponse) Validate

func (m *NormalTaskResponse) Validate() error

Validate checks the field values on NormalTaskResponse 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 (*NormalTaskResponse) ValidateAll

func (m *NormalTaskResponse) ValidateAll() error

ValidateAll checks the field values on NormalTaskResponse 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 NormalTaskResponseMultiError, or nil if none found.

type NormalTaskResponseMultiError

type NormalTaskResponseMultiError []error

NormalTaskResponseMultiError is an error wrapping multiple validation errors returned by NormalTaskResponse.ValidateAll() if the designated constraints aren't met.

func (NormalTaskResponseMultiError) AllErrors

func (m NormalTaskResponseMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (NormalTaskResponseMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type NormalTaskResponseValidationError

type NormalTaskResponseValidationError struct {
	// contains filtered or unexported fields
}

NormalTaskResponseValidationError is the validation error returned by NormalTaskResponse.Validate if the designated constraints aren't met.

func (NormalTaskResponseValidationError) Cause

Cause function returns cause value.

func (NormalTaskResponseValidationError) Error

Error satisfies the builtin error interface

func (NormalTaskResponseValidationError) ErrorName

ErrorName returns error name.

func (NormalTaskResponseValidationError) Field

Field function returns field value.

func (NormalTaskResponseValidationError) Key

Key function returns key value.

func (NormalTaskResponseValidationError) Reason

Reason function returns reason value.

type OSSResponse added in v1.7.9

type OSSResponse struct {
	// contains filtered or unexported fields
}

OSSResponse represents oss protocol response of DownloadPieceBackToSourceFailedRequest.

func (*OSSResponse) Descriptor deprecated added in v1.7.9

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

Deprecated: Use OSSResponse.ProtoReflect.Descriptor instead.

func (*OSSResponse) ProtoMessage added in v1.7.9

func (*OSSResponse) ProtoMessage()

func (*OSSResponse) ProtoReflect added in v1.7.9

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

func (*OSSResponse) Reset added in v1.7.9

func (x *OSSResponse) Reset()

func (*OSSResponse) String added in v1.7.9

func (x *OSSResponse) String() string

func (*OSSResponse) Validate added in v1.7.9

func (m *OSSResponse) Validate() error

Validate checks the field values on OSSResponse 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 (*OSSResponse) ValidateAll added in v1.7.9

func (m *OSSResponse) ValidateAll() error

ValidateAll checks the field values on OSSResponse 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 OSSResponseMultiError, or nil if none found.

type OSSResponseMultiError added in v1.7.9

type OSSResponseMultiError []error

OSSResponseMultiError is an error wrapping multiple validation errors returned by OSSResponse.ValidateAll() if the designated constraints aren't met.

func (OSSResponseMultiError) AllErrors added in v1.7.9

func (m OSSResponseMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (OSSResponseMultiError) Error added in v1.7.9

func (m OSSResponseMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type OSSResponseValidationError added in v1.7.9

type OSSResponseValidationError struct {
	// contains filtered or unexported fields
}

OSSResponseValidationError is the validation error returned by OSSResponse.Validate if the designated constraints aren't met.

func (OSSResponseValidationError) Cause added in v1.7.9

Cause function returns cause value.

func (OSSResponseValidationError) Error added in v1.7.9

Error satisfies the builtin error interface

func (OSSResponseValidationError) ErrorName added in v1.7.9

func (e OSSResponseValidationError) ErrorName() string

ErrorName returns error name.

func (OSSResponseValidationError) Field added in v1.7.9

Field function returns field value.

func (OSSResponseValidationError) Key added in v1.7.9

Key function returns key value.

func (OSSResponseValidationError) Reason added in v1.7.9

Reason function returns reason value.

type Probe added in v1.4.8

type Probe struct {

	// Destination host metadata.
	Host *v2.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"`
	// Probe create time.
	CreatedAt *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"`
	// contains filtered or unexported fields
}

Probe information.

func (*Probe) Descriptor deprecated added in v1.4.8

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

Deprecated: Use Probe.ProtoReflect.Descriptor instead.

func (*Probe) GetCreatedAt added in v1.8.4

func (x *Probe) GetCreatedAt() *timestamppb.Timestamp

func (*Probe) GetHost added in v1.4.8

func (x *Probe) GetHost() *v2.Host

func (*Probe) GetRtt added in v1.4.8

func (x *Probe) GetRtt() *durationpb.Duration

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) Reset added in v1.4.8

func (x *Probe) Reset()

func (*Probe) String added in v1.4.8

func (x *Probe) String() string

func (*Probe) Validate added in v1.4.8

func (m *Probe) Validate() error

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

func (m *Probe) ValidateAll() error

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 ProbeFailedRequest added in v1.9.0

type ProbeFailedRequest struct {

	// Failed probes information.
	Probes []*FailedProbe `protobuf:"bytes,1,rep,name=probes,proto3" json:"probes,omitempty"`
	// contains filtered or unexported fields
}

ProbeFailedRequest represents failed request of SyncProbesRequest.

func (*ProbeFailedRequest) Descriptor deprecated added in v1.9.0

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

Deprecated: Use ProbeFailedRequest.ProtoReflect.Descriptor instead.

func (*ProbeFailedRequest) GetProbes added in v1.9.2

func (x *ProbeFailedRequest) GetProbes() []*FailedProbe

func (*ProbeFailedRequest) ProtoMessage added in v1.9.0

func (*ProbeFailedRequest) ProtoMessage()

func (*ProbeFailedRequest) ProtoReflect added in v1.9.0

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

func (*ProbeFailedRequest) Reset added in v1.9.0

func (x *ProbeFailedRequest) Reset()

func (*ProbeFailedRequest) String added in v1.9.0

func (x *ProbeFailedRequest) String() string

func (*ProbeFailedRequest) Validate added in v1.9.0

func (m *ProbeFailedRequest) Validate() error

Validate checks the field values on ProbeFailedRequest 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 (*ProbeFailedRequest) ValidateAll added in v1.9.0

func (m *ProbeFailedRequest) ValidateAll() error

ValidateAll checks the field values on ProbeFailedRequest 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 ProbeFailedRequestMultiError, or nil if none found.

type ProbeFailedRequestMultiError added in v1.9.0

type ProbeFailedRequestMultiError []error

ProbeFailedRequestMultiError is an error wrapping multiple validation errors returned by ProbeFailedRequest.ValidateAll() if the designated constraints aren't met.

func (ProbeFailedRequestMultiError) AllErrors added in v1.9.0

func (m ProbeFailedRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (ProbeFailedRequestMultiError) Error added in v1.9.0

Error returns a concatenation of all the error messages it wraps.

type ProbeFailedRequestValidationError added in v1.9.0

type ProbeFailedRequestValidationError struct {
	// contains filtered or unexported fields
}

ProbeFailedRequestValidationError is the validation error returned by ProbeFailedRequest.Validate if the designated constraints aren't met.

func (ProbeFailedRequestValidationError) Cause added in v1.9.0

Cause function returns cause value.

func (ProbeFailedRequestValidationError) Error added in v1.9.0

Error satisfies the builtin error interface

func (ProbeFailedRequestValidationError) ErrorName added in v1.9.0

ErrorName returns error name.

func (ProbeFailedRequestValidationError) Field added in v1.9.0

Field function returns field value.

func (ProbeFailedRequestValidationError) Key added in v1.9.0

Key function returns key value.

func (ProbeFailedRequestValidationError) Reason added in v1.9.0

Reason function returns reason value.

type ProbeFinishedRequest added in v1.9.0

type ProbeFinishedRequest struct {

	// Probes information.
	Probes []*Probe `protobuf:"bytes,1,rep,name=probes,proto3" json:"probes,omitempty"`
	// contains filtered or unexported fields
}

ProbeFinishedRequest represents finished request of SyncProbesRequest.

func (*ProbeFinishedRequest) Descriptor deprecated added in v1.9.0

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

Deprecated: Use ProbeFinishedRequest.ProtoReflect.Descriptor instead.

func (*ProbeFinishedRequest) GetProbes added in v1.9.0

func (x *ProbeFinishedRequest) GetProbes() []*Probe

func (*ProbeFinishedRequest) ProtoMessage added in v1.9.0

func (*ProbeFinishedRequest) ProtoMessage()

func (*ProbeFinishedRequest) ProtoReflect added in v1.9.0

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

func (*ProbeFinishedRequest) Reset added in v1.9.0

func (x *ProbeFinishedRequest) Reset()

func (*ProbeFinishedRequest) String added in v1.9.0

func (x *ProbeFinishedRequest) String() string

func (*ProbeFinishedRequest) Validate added in v1.9.0

func (m *ProbeFinishedRequest) Validate() error

Validate checks the field values on ProbeFinishedRequest 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 (*ProbeFinishedRequest) ValidateAll added in v1.9.0

func (m *ProbeFinishedRequest) ValidateAll() error

ValidateAll checks the field values on ProbeFinishedRequest 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 ProbeFinishedRequestMultiError, or nil if none found.

type ProbeFinishedRequestMultiError added in v1.9.0

type ProbeFinishedRequestMultiError []error

ProbeFinishedRequestMultiError is an error wrapping multiple validation errors returned by ProbeFinishedRequest.ValidateAll() if the designated constraints aren't met.

func (ProbeFinishedRequestMultiError) AllErrors added in v1.9.0

func (m ProbeFinishedRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (ProbeFinishedRequestMultiError) Error added in v1.9.0

Error returns a concatenation of all the error messages it wraps.

type ProbeFinishedRequestValidationError added in v1.9.0

type ProbeFinishedRequestValidationError struct {
	// contains filtered or unexported fields
}

ProbeFinishedRequestValidationError is the validation error returned by ProbeFinishedRequest.Validate if the designated constraints aren't met.

func (ProbeFinishedRequestValidationError) Cause added in v1.9.0

Cause function returns cause value.

func (ProbeFinishedRequestValidationError) Error added in v1.9.0

Error satisfies the builtin error interface

func (ProbeFinishedRequestValidationError) ErrorName added in v1.9.0

ErrorName returns error name.

func (ProbeFinishedRequestValidationError) Field added in v1.9.0

Field function returns field value.

func (ProbeFinishedRequestValidationError) Key added in v1.9.0

Key function returns key value.

func (ProbeFinishedRequestValidationError) Reason added in v1.9.0

Reason function returns reason value.

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 ProbeStartedRequest added in v1.9.0

type ProbeStartedRequest struct {
	// contains filtered or unexported fields
}

ProbeStartedRequest represents started request of SyncProbesRequest.

func (*ProbeStartedRequest) Descriptor deprecated added in v1.9.0

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

Deprecated: Use ProbeStartedRequest.ProtoReflect.Descriptor instead.

func (*ProbeStartedRequest) ProtoMessage added in v1.9.0

func (*ProbeStartedRequest) ProtoMessage()

func (*ProbeStartedRequest) ProtoReflect added in v1.9.0

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

func (*ProbeStartedRequest) Reset added in v1.9.0

func (x *ProbeStartedRequest) Reset()

func (*ProbeStartedRequest) String added in v1.9.0

func (x *ProbeStartedRequest) String() string

func (*ProbeStartedRequest) Validate added in v1.9.0

func (m *ProbeStartedRequest) Validate() error

Validate checks the field values on ProbeStartedRequest 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 (*ProbeStartedRequest) ValidateAll added in v1.9.0

func (m *ProbeStartedRequest) ValidateAll() error

ValidateAll checks the field values on ProbeStartedRequest 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 ProbeStartedRequestMultiError, or nil if none found.

type ProbeStartedRequestMultiError added in v1.9.0

type ProbeStartedRequestMultiError []error

ProbeStartedRequestMultiError is an error wrapping multiple validation errors returned by ProbeStartedRequest.ValidateAll() if the designated constraints aren't met.

func (ProbeStartedRequestMultiError) AllErrors added in v1.9.0

func (m ProbeStartedRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (ProbeStartedRequestMultiError) Error added in v1.9.0

Error returns a concatenation of all the error messages it wraps.

type ProbeStartedRequestValidationError added in v1.9.0

type ProbeStartedRequestValidationError struct {
	// contains filtered or unexported fields
}

ProbeStartedRequestValidationError is the validation error returned by ProbeStartedRequest.Validate if the designated constraints aren't met.

func (ProbeStartedRequestValidationError) Cause added in v1.9.0

Cause function returns cause value.

func (ProbeStartedRequestValidationError) Error added in v1.9.0

Error satisfies the builtin error interface

func (ProbeStartedRequestValidationError) ErrorName added in v1.9.0

ErrorName returns error name.

func (ProbeStartedRequestValidationError) Field added in v1.9.0

Field function returns field value.

func (ProbeStartedRequestValidationError) Key added in v1.9.0

Key function returns key value.

func (ProbeStartedRequestValidationError) Reason added in v1.9.0

Reason function returns reason value.

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 RegisterPeerRequest added in v1.4.1

type RegisterPeerRequest struct {

	// Download information.
	Download *v2.Download `protobuf:"bytes,1,opt,name=download,proto3" json:"download,omitempty"`
	// contains filtered or unexported fields
}

RegisterPeerRequest represents peer registered request of AnnouncePeerRequest.

func (*RegisterPeerRequest) Descriptor deprecated added in v1.4.1

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

Deprecated: Use RegisterPeerRequest.ProtoReflect.Descriptor instead.

func (*RegisterPeerRequest) GetDownload added in v1.5.0

func (x *RegisterPeerRequest) GetDownload() *v2.Download

func (*RegisterPeerRequest) ProtoMessage added in v1.4.1

func (*RegisterPeerRequest) ProtoMessage()

func (*RegisterPeerRequest) ProtoReflect added in v1.4.1

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

func (*RegisterPeerRequest) Reset added in v1.4.1

func (x *RegisterPeerRequest) Reset()

func (*RegisterPeerRequest) String added in v1.4.1

func (x *RegisterPeerRequest) String() string

func (*RegisterPeerRequest) Validate added in v1.4.1

func (m *RegisterPeerRequest) Validate() error

Validate checks the field values on RegisterPeerRequest 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 (*RegisterPeerRequest) ValidateAll added in v1.4.1

func (m *RegisterPeerRequest) ValidateAll() error

ValidateAll checks the field values on RegisterPeerRequest 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 RegisterPeerRequestMultiError, or nil if none found.

type RegisterPeerRequestMultiError added in v1.4.1

type RegisterPeerRequestMultiError []error

RegisterPeerRequestMultiError is an error wrapping multiple validation errors returned by RegisterPeerRequest.ValidateAll() if the designated constraints aren't met.

func (RegisterPeerRequestMultiError) AllErrors added in v1.4.1

func (m RegisterPeerRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (RegisterPeerRequestMultiError) Error added in v1.4.1

Error returns a concatenation of all the error messages it wraps.

type RegisterPeerRequestValidationError added in v1.4.1

type RegisterPeerRequestValidationError struct {
	// contains filtered or unexported fields
}

RegisterPeerRequestValidationError is the validation error returned by RegisterPeerRequest.Validate if the designated constraints aren't met.

func (RegisterPeerRequestValidationError) Cause added in v1.4.1

Cause function returns cause value.

func (RegisterPeerRequestValidationError) Error added in v1.4.1

Error satisfies the builtin error interface

func (RegisterPeerRequestValidationError) ErrorName added in v1.4.1

ErrorName returns error name.

func (RegisterPeerRequestValidationError) Field added in v1.4.1

Field function returns field value.

func (RegisterPeerRequestValidationError) Key added in v1.4.1

Key function returns key value.

func (RegisterPeerRequestValidationError) Reason added in v1.4.1

Reason function returns reason value.

type RegisterSeedPeerRequest added in v1.6.9

type RegisterSeedPeerRequest struct {

	// Download information.
	Download *v2.Download `protobuf:"bytes,1,opt,name=download,proto3" json:"download,omitempty"`
	// contains filtered or unexported fields
}

RegisterSeedPeerRequest represents seed peer registered request of AnnouncePeerRequest.

func (*RegisterSeedPeerRequest) Descriptor deprecated added in v1.6.9

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

Deprecated: Use RegisterSeedPeerRequest.ProtoReflect.Descriptor instead.

func (*RegisterSeedPeerRequest) GetDownload added in v1.6.9

func (x *RegisterSeedPeerRequest) GetDownload() *v2.Download

func (*RegisterSeedPeerRequest) ProtoMessage added in v1.6.9

func (*RegisterSeedPeerRequest) ProtoMessage()

func (*RegisterSeedPeerRequest) ProtoReflect added in v1.6.9

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

func (*RegisterSeedPeerRequest) Reset added in v1.6.9

func (x *RegisterSeedPeerRequest) Reset()

func (*RegisterSeedPeerRequest) String added in v1.6.9

func (x *RegisterSeedPeerRequest) String() string

func (*RegisterSeedPeerRequest) Validate added in v1.6.9

func (m *RegisterSeedPeerRequest) Validate() error

Validate checks the field values on RegisterSeedPeerRequest 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 (*RegisterSeedPeerRequest) ValidateAll added in v1.6.9

func (m *RegisterSeedPeerRequest) ValidateAll() error

ValidateAll checks the field values on RegisterSeedPeerRequest 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 RegisterSeedPeerRequestMultiError, or nil if none found.

type RegisterSeedPeerRequestMultiError added in v1.6.9

type RegisterSeedPeerRequestMultiError []error

RegisterSeedPeerRequestMultiError is an error wrapping multiple validation errors returned by RegisterSeedPeerRequest.ValidateAll() if the designated constraints aren't met.

func (RegisterSeedPeerRequestMultiError) AllErrors added in v1.6.9

func (m RegisterSeedPeerRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (RegisterSeedPeerRequestMultiError) Error added in v1.6.9

Error returns a concatenation of all the error messages it wraps.

type RegisterSeedPeerRequestValidationError added in v1.6.9

type RegisterSeedPeerRequestValidationError struct {
	// contains filtered or unexported fields
}

RegisterSeedPeerRequestValidationError is the validation error returned by RegisterSeedPeerRequest.Validate if the designated constraints aren't met.

func (RegisterSeedPeerRequestValidationError) Cause added in v1.6.9

Cause function returns cause value.

func (RegisterSeedPeerRequestValidationError) Error added in v1.6.9

Error satisfies the builtin error interface

func (RegisterSeedPeerRequestValidationError) ErrorName added in v1.6.9

ErrorName returns error name.

func (RegisterSeedPeerRequestValidationError) Field added in v1.6.9

Field function returns field value.

func (RegisterSeedPeerRequestValidationError) Key added in v1.6.9

Key function returns key value.

func (RegisterSeedPeerRequestValidationError) Reason added in v1.6.9

Reason function returns reason value.

type S3Response added in v1.7.9

type S3Response struct {
	// contains filtered or unexported fields
}

S3Response represents s3 protocol response of DownloadPieceBackToSourceFailedRequest.

func (*S3Response) Descriptor deprecated added in v1.7.9

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

Deprecated: Use S3Response.ProtoReflect.Descriptor instead.

func (*S3Response) ProtoMessage added in v1.7.9

func (*S3Response) ProtoMessage()

func (*S3Response) ProtoReflect added in v1.7.9

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

func (*S3Response) Reset added in v1.7.9

func (x *S3Response) Reset()

func (*S3Response) String added in v1.7.9

func (x *S3Response) String() string

func (*S3Response) Validate added in v1.7.9

func (m *S3Response) Validate() error

Validate checks the field values on S3Response 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 (*S3Response) ValidateAll added in v1.7.9

func (m *S3Response) ValidateAll() error

ValidateAll checks the field values on S3Response 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 S3ResponseMultiError, or nil if none found.

type S3ResponseMultiError added in v1.7.9

type S3ResponseMultiError []error

S3ResponseMultiError is an error wrapping multiple validation errors returned by S3Response.ValidateAll() if the designated constraints aren't met.

func (S3ResponseMultiError) AllErrors added in v1.7.9

func (m S3ResponseMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (S3ResponseMultiError) Error added in v1.7.9

func (m S3ResponseMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type S3ResponseValidationError added in v1.7.9

type S3ResponseValidationError struct {
	// contains filtered or unexported fields
}

S3ResponseValidationError is the validation error returned by S3Response.Validate if the designated constraints aren't met.

func (S3ResponseValidationError) Cause added in v1.7.9

func (e S3ResponseValidationError) Cause() error

Cause function returns cause value.

func (S3ResponseValidationError) Error added in v1.7.9

Error satisfies the builtin error interface

func (S3ResponseValidationError) ErrorName added in v1.7.9

func (e S3ResponseValidationError) ErrorName() string

ErrorName returns error name.

func (S3ResponseValidationError) Field added in v1.7.9

Field function returns field value.

func (S3ResponseValidationError) Key added in v1.7.9

Key function returns key value.

func (S3ResponseValidationError) Reason added in v1.7.9

func (e S3ResponseValidationError) Reason() string

Reason function returns reason value.

type SchedulerClient

type SchedulerClient interface {
	// AnnouncePeer announces peer to scheduler.
	AnnouncePeer(ctx context.Context, opts ...grpc.CallOption) (Scheduler_AnnouncePeerClient, error)
	// Checks information of peer.
	StatPeer(ctx context.Context, in *StatPeerRequest, opts ...grpc.CallOption) (*v2.Peer, error)
	// LeavePeer releases peer in scheduler.
	LeavePeer(ctx context.Context, in *LeavePeerRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
	// TODO exchange peer api definition.
	// ExchangePeer exchanges peer information.
	ExchangePeer(ctx context.Context, in *ExchangePeerRequest, opts ...grpc.CallOption) (*ExchangePeerResponse, error)
	// Checks information of task.
	StatTask(ctx context.Context, in *StatTaskRequest, opts ...grpc.CallOption) (*v2.Task, error)
	// AnnounceHost announces host to scheduler.
	AnnounceHost(ctx context.Context, in *AnnounceHostRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
	// LeaveHost releases host in scheduler.
	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)
}

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 {
	// AnnouncePeer announces peer to scheduler.
	AnnouncePeer(Scheduler_AnnouncePeerServer) error
	// Checks information of peer.
	StatPeer(context.Context, *StatPeerRequest) (*v2.Peer, error)
	// LeavePeer releases peer in scheduler.
	LeavePeer(context.Context, *LeavePeerRequest) (*emptypb.Empty, error)
	// TODO exchange peer api definition.
	// ExchangePeer exchanges peer information.
	ExchangePeer(context.Context, *ExchangePeerRequest) (*ExchangePeerResponse, error)
	// Checks information of task.
	StatTask(context.Context, *StatTaskRequest) (*v2.Task, error)
	// AnnounceHost announces host to scheduler.
	AnnounceHost(context.Context, *AnnounceHostRequest) (*emptypb.Empty, error)
	// LeaveHost releases host in scheduler.
	LeaveHost(context.Context, *LeaveHostRequest) (*emptypb.Empty, error)
	// SyncProbes sync probes of the host.
	SyncProbes(Scheduler_SyncProbesServer) error
}

SchedulerServer is the server API for Scheduler service. All implementations should embed UnimplementedSchedulerServer for forward compatibility

type Scheduler_AnnouncePeerClient

type Scheduler_AnnouncePeerClient interface {
	Send(*AnnouncePeerRequest) error
	Recv() (*AnnouncePeerResponse, error)
	grpc.ClientStream
}

type Scheduler_AnnouncePeerServer

type Scheduler_AnnouncePeerServer interface {
	Send(*AnnouncePeerResponse) error
	Recv() (*AnnouncePeerRequest, 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 SmallTaskResponse

type SmallTaskResponse struct {

	// Candidate parent.
	CandidateParent *v2.Peer `protobuf:"bytes,1,opt,name=candidate_parent,json=candidateParent,proto3" json:"candidate_parent,omitempty"`
	// contains filtered or unexported fields
}

SmallTaskResponse represents small task response of AnnouncePeerResponse.

func (*SmallTaskResponse) Descriptor deprecated

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

Deprecated: Use SmallTaskResponse.ProtoReflect.Descriptor instead.

func (*SmallTaskResponse) GetCandidateParent added in v1.7.3

func (x *SmallTaskResponse) GetCandidateParent() *v2.Peer

func (*SmallTaskResponse) ProtoMessage

func (*SmallTaskResponse) ProtoMessage()

func (*SmallTaskResponse) ProtoReflect

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

func (*SmallTaskResponse) Reset

func (x *SmallTaskResponse) Reset()

func (*SmallTaskResponse) String

func (x *SmallTaskResponse) String() string

func (*SmallTaskResponse) Validate

func (m *SmallTaskResponse) Validate() error

Validate checks the field values on SmallTaskResponse 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 (*SmallTaskResponse) ValidateAll

func (m *SmallTaskResponse) ValidateAll() error

ValidateAll checks the field values on SmallTaskResponse 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 SmallTaskResponseMultiError, or nil if none found.

type SmallTaskResponseMultiError

type SmallTaskResponseMultiError []error

SmallTaskResponseMultiError is an error wrapping multiple validation errors returned by SmallTaskResponse.ValidateAll() if the designated constraints aren't met.

func (SmallTaskResponseMultiError) AllErrors

func (m SmallTaskResponseMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (SmallTaskResponseMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type SmallTaskResponseValidationError

type SmallTaskResponseValidationError struct {
	// contains filtered or unexported fields
}

SmallTaskResponseValidationError is the validation error returned by SmallTaskResponse.Validate if the designated constraints aren't met.

func (SmallTaskResponseValidationError) Cause

Cause function returns cause value.

func (SmallTaskResponseValidationError) Error

Error satisfies the builtin error interface

func (SmallTaskResponseValidationError) ErrorName

ErrorName returns error name.

func (SmallTaskResponseValidationError) Field

Field function returns field value.

func (SmallTaskResponseValidationError) Key

Key function returns key value.

func (SmallTaskResponseValidationError) Reason

Reason function returns reason value.

type StatPeerRequest

type StatPeerRequest struct {

	// Host id.
	HostId string `protobuf:"bytes,1,opt,name=host_id,json=hostId,proto3" json:"host_id,omitempty"`
	// Task id.
	TaskId string `protobuf:"bytes,2,opt,name=task_id,json=taskId,proto3" json:"task_id,omitempty"`
	// Peer id.
	PeerId string `protobuf:"bytes,3,opt,name=peer_id,json=peerId,proto3" json:"peer_id,omitempty"`
	// contains filtered or unexported fields
}

StatPeerRequest represents request of StatPeer.

func (*StatPeerRequest) Descriptor deprecated

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

Deprecated: Use StatPeerRequest.ProtoReflect.Descriptor instead.

func (*StatPeerRequest) GetHostId added in v1.6.8

func (x *StatPeerRequest) GetHostId() string

func (*StatPeerRequest) GetPeerId

func (x *StatPeerRequest) GetPeerId() string

func (*StatPeerRequest) GetTaskId added in v1.1.6

func (x *StatPeerRequest) GetTaskId() string

func (*StatPeerRequest) ProtoMessage

func (*StatPeerRequest) ProtoMessage()

func (*StatPeerRequest) ProtoReflect

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

func (*StatPeerRequest) Reset

func (x *StatPeerRequest) Reset()

func (*StatPeerRequest) String

func (x *StatPeerRequest) String() string

func (*StatPeerRequest) Validate

func (m *StatPeerRequest) Validate() error

Validate checks the field values on StatPeerRequest 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 (*StatPeerRequest) ValidateAll

func (m *StatPeerRequest) ValidateAll() error

ValidateAll checks the field values on StatPeerRequest 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 StatPeerRequestMultiError, or nil if none found.

type StatPeerRequestMultiError

type StatPeerRequestMultiError []error

StatPeerRequestMultiError is an error wrapping multiple validation errors returned by StatPeerRequest.ValidateAll() if the designated constraints aren't met.

func (StatPeerRequestMultiError) AllErrors

func (m StatPeerRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (StatPeerRequestMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type StatPeerRequestValidationError

type StatPeerRequestValidationError struct {
	// contains filtered or unexported fields
}

StatPeerRequestValidationError is the validation error returned by StatPeerRequest.Validate if the designated constraints aren't met.

func (StatPeerRequestValidationError) Cause

Cause function returns cause value.

func (StatPeerRequestValidationError) Error

Error satisfies the builtin error interface

func (StatPeerRequestValidationError) ErrorName

func (e StatPeerRequestValidationError) ErrorName() string

ErrorName returns error name.

func (StatPeerRequestValidationError) Field

Field function returns field value.

func (StatPeerRequestValidationError) Key

Key function returns key value.

func (StatPeerRequestValidationError) Reason

Reason function returns reason value.

type StatTaskRequest

type StatTaskRequest struct {

	// Task id.
	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"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) GetId added in v1.2.2

func (x *StatTaskRequest) GetId() 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

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

Cause function returns cause value.

func (StatTaskRequestValidationError) Error

Error satisfies the builtin error interface

func (StatTaskRequestValidationError) ErrorName

func (e StatTaskRequestValidationError) ErrorName() string

ErrorName returns error name.

func (StatTaskRequestValidationError) Field

Field function returns field value.

func (StatTaskRequestValidationError) Key

Key function returns key value.

func (StatTaskRequestValidationError) Reason

Reason function returns reason value.

type SyncPiecesFailedRequest added in v1.6.6

type SyncPiecesFailedRequest struct {

	// Parent peer id.
	ParentId string `protobuf:"bytes,1,opt,name=parent_id,json=parentId,proto3" json:"parent_id,omitempty"`
	// The description of the error.
	Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"`
	// contains filtered or unexported fields
}

SyncPiecesFailedRequest syncs pieces failed request of AnnouncePeerRequest.

func (*SyncPiecesFailedRequest) Descriptor deprecated added in v1.6.6

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

Deprecated: Use SyncPiecesFailedRequest.ProtoReflect.Descriptor instead.

func (*SyncPiecesFailedRequest) GetDescription added in v1.6.6

func (x *SyncPiecesFailedRequest) GetDescription() string

func (*SyncPiecesFailedRequest) GetParentId added in v1.6.6

func (x *SyncPiecesFailedRequest) GetParentId() string

func (*SyncPiecesFailedRequest) ProtoMessage added in v1.6.6

func (*SyncPiecesFailedRequest) ProtoMessage()

func (*SyncPiecesFailedRequest) ProtoReflect added in v1.6.6

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

func (*SyncPiecesFailedRequest) Reset added in v1.6.6

func (x *SyncPiecesFailedRequest) Reset()

func (*SyncPiecesFailedRequest) String added in v1.6.6

func (x *SyncPiecesFailedRequest) String() string

func (*SyncPiecesFailedRequest) Validate added in v1.6.6

func (m *SyncPiecesFailedRequest) Validate() error

Validate checks the field values on SyncPiecesFailedRequest 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 (*SyncPiecesFailedRequest) ValidateAll added in v1.6.6

func (m *SyncPiecesFailedRequest) ValidateAll() error

ValidateAll checks the field values on SyncPiecesFailedRequest 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 SyncPiecesFailedRequestMultiError, or nil if none found.

type SyncPiecesFailedRequestMultiError added in v1.6.6

type SyncPiecesFailedRequestMultiError []error

SyncPiecesFailedRequestMultiError is an error wrapping multiple validation errors returned by SyncPiecesFailedRequest.ValidateAll() if the designated constraints aren't met.

func (SyncPiecesFailedRequestMultiError) AllErrors added in v1.6.6

func (m SyncPiecesFailedRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (SyncPiecesFailedRequestMultiError) Error added in v1.6.6

Error returns a concatenation of all the error messages it wraps.

type SyncPiecesFailedRequestValidationError added in v1.6.6

type SyncPiecesFailedRequestValidationError struct {
	// contains filtered or unexported fields
}

SyncPiecesFailedRequestValidationError is the validation error returned by SyncPiecesFailedRequest.Validate if the designated constraints aren't met.

func (SyncPiecesFailedRequestValidationError) Cause added in v1.6.6

Cause function returns cause value.

func (SyncPiecesFailedRequestValidationError) Error added in v1.6.6

Error satisfies the builtin error interface

func (SyncPiecesFailedRequestValidationError) ErrorName added in v1.6.6

ErrorName returns error name.

func (SyncPiecesFailedRequestValidationError) Field added in v1.6.6

Field function returns field value.

func (SyncPiecesFailedRequestValidationError) Key added in v1.6.6

Key function returns key value.

func (SyncPiecesFailedRequestValidationError) Reason added in v1.6.6

Reason function returns reason value.

type SyncProbesRequest added in v1.4.8

type SyncProbesRequest struct {

	// Source host metadata.
	Host *v2.Host `protobuf:"bytes,1,opt,name=host,proto3" json:"host,omitempty"`
	// Types that are assignable to Request:
	//
	//	*SyncProbesRequest_ProbeStartedRequest
	//	*SyncProbesRequest_ProbeFinishedRequest
	//	*SyncProbesRequest_ProbeFailedRequest
	Request isSyncProbesRequest_Request `protobuf_oneof:"request"`
	// 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) GetHost added in v1.9.1

func (x *SyncProbesRequest) GetHost() *v2.Host

func (*SyncProbesRequest) GetProbeFailedRequest added in v1.9.0

func (x *SyncProbesRequest) GetProbeFailedRequest() *ProbeFailedRequest

func (*SyncProbesRequest) GetProbeFinishedRequest added in v1.9.0

func (x *SyncProbesRequest) GetProbeFinishedRequest() *ProbeFinishedRequest

func (*SyncProbesRequest) GetProbeStartedRequest added in v1.9.0

func (x *SyncProbesRequest) GetProbeStartedRequest() *ProbeStartedRequest

func (*SyncProbesRequest) GetRequest added in v1.9.0

func (m *SyncProbesRequest) GetRequest() isSyncProbesRequest_Request

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

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

Cause function returns cause value.

func (SyncProbesRequestValidationError) Error added in v1.4.8

Error satisfies the builtin error interface

func (SyncProbesRequestValidationError) ErrorName added in v1.4.8

ErrorName returns error name.

func (SyncProbesRequestValidationError) Field added in v1.4.8

Field function returns field value.

func (SyncProbesRequestValidationError) Key added in v1.4.8

Key function returns key value.

func (SyncProbesRequestValidationError) Reason added in v1.4.8

Reason function returns reason value.

type SyncProbesRequest_ProbeFailedRequest added in v1.9.0

type SyncProbesRequest_ProbeFailedRequest struct {
	ProbeFailedRequest *ProbeFailedRequest `protobuf:"bytes,4,opt,name=probe_failed_request,json=probeFailedRequest,proto3,oneof"`
}

type SyncProbesRequest_ProbeFinishedRequest added in v1.9.0

type SyncProbesRequest_ProbeFinishedRequest struct {
	ProbeFinishedRequest *ProbeFinishedRequest `protobuf:"bytes,3,opt,name=probe_finished_request,json=probeFinishedRequest,proto3,oneof"`
}

type SyncProbesRequest_ProbeStartedRequest added in v1.9.0

type SyncProbesRequest_ProbeStartedRequest struct {
	ProbeStartedRequest *ProbeStartedRequest `protobuf:"bytes,2,opt,name=probe_started_request,json=probeStartedRequest,proto3,oneof"`
}

type SyncProbesResponse added in v1.4.8

type SyncProbesResponse struct {

	// Hosts needs to be probed.
	Hosts []*v2.Host `protobuf:"bytes,1,rep,name=hosts,proto3" json:"hosts,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() []*v2.Host

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

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

Cause function returns cause value.

func (SyncProbesResponseValidationError) Error added in v1.4.8

Error satisfies the builtin error interface

func (SyncProbesResponseValidationError) ErrorName added in v1.4.8

ErrorName returns error name.

func (SyncProbesResponseValidationError) Field added in v1.4.8

Field function returns field value.

func (SyncProbesResponseValidationError) Key added in v1.4.8

Key function returns key value.

func (SyncProbesResponseValidationError) Reason added in v1.4.8

Reason function returns reason value.

type TinyTaskResponse

type TinyTaskResponse struct {

	// Tiny task content.
	Content []byte `protobuf:"bytes,1,opt,name=content,proto3" json:"content,omitempty"`
	// contains filtered or unexported fields
}

TinyTaskResponse represents tiny task response of AnnouncePeerResponse.

func (*TinyTaskResponse) Descriptor deprecated

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

Deprecated: Use TinyTaskResponse.ProtoReflect.Descriptor instead.

func (*TinyTaskResponse) GetContent added in v1.9.7

func (x *TinyTaskResponse) GetContent() []byte

func (*TinyTaskResponse) ProtoMessage

func (*TinyTaskResponse) ProtoMessage()

func (*TinyTaskResponse) ProtoReflect

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

func (*TinyTaskResponse) Reset

func (x *TinyTaskResponse) Reset()

func (*TinyTaskResponse) String

func (x *TinyTaskResponse) String() string

func (*TinyTaskResponse) Validate

func (m *TinyTaskResponse) Validate() error

Validate checks the field values on TinyTaskResponse 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 (*TinyTaskResponse) ValidateAll

func (m *TinyTaskResponse) ValidateAll() error

ValidateAll checks the field values on TinyTaskResponse 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 TinyTaskResponseMultiError, or nil if none found.

type TinyTaskResponseMultiError

type TinyTaskResponseMultiError []error

TinyTaskResponseMultiError is an error wrapping multiple validation errors returned by TinyTaskResponse.ValidateAll() if the designated constraints aren't met.

func (TinyTaskResponseMultiError) AllErrors

func (m TinyTaskResponseMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (TinyTaskResponseMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type TinyTaskResponseValidationError

type TinyTaskResponseValidationError struct {
	// contains filtered or unexported fields
}

TinyTaskResponseValidationError is the validation error returned by TinyTaskResponse.Validate if the designated constraints aren't met.

func (TinyTaskResponseValidationError) Cause

Cause function returns cause value.

func (TinyTaskResponseValidationError) Error

Error satisfies the builtin error interface

func (TinyTaskResponseValidationError) ErrorName

ErrorName returns error name.

func (TinyTaskResponseValidationError) Field

Field function returns field value.

func (TinyTaskResponseValidationError) Key

Key function returns key value.

func (TinyTaskResponseValidationError) Reason

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

func (UnimplementedSchedulerServer) ExchangePeer

func (UnimplementedSchedulerServer) LeaveHost added in v1.2.2

func (UnimplementedSchedulerServer) LeavePeer

func (UnimplementedSchedulerServer) StatPeer

func (UnimplementedSchedulerServer) StatTask

func (UnimplementedSchedulerServer) SyncProbes added in v1.4.8

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.

Directories

Path Synopsis
Package mocks is a generated GoMock package.
Package mocks is a generated GoMock package.

Jump to

Keyboard shortcuts

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