Documentation ¶
Index ¶
- Variables
- func RegisterDfdaemonServer(s grpc.ServiceRegistrar, srv DfdaemonServer)
- type DeleteTaskRequest
- func (*DeleteTaskRequest) Descriptor() ([]byte, []int)deprecated
- func (x *DeleteTaskRequest) GetTaskId() string
- func (*DeleteTaskRequest) ProtoMessage()
- func (x *DeleteTaskRequest) ProtoReflect() protoreflect.Message
- func (x *DeleteTaskRequest) Reset()
- func (x *DeleteTaskRequest) String() string
- func (m *DeleteTaskRequest) Validate() error
- func (m *DeleteTaskRequest) ValidateAll() error
- type DeleteTaskRequestMultiError
- type DeleteTaskRequestValidationError
- func (e DeleteTaskRequestValidationError) Cause() error
- func (e DeleteTaskRequestValidationError) Error() string
- func (e DeleteTaskRequestValidationError) ErrorName() string
- func (e DeleteTaskRequestValidationError) Field() string
- func (e DeleteTaskRequestValidationError) Key() bool
- func (e DeleteTaskRequestValidationError) Reason() string
- type DfdaemonClient
- type DfdaemonServer
- type Dfdaemon_DownloadTaskClient
- type Dfdaemon_DownloadTaskServer
- type Dfdaemon_SyncPiecesClient
- type Dfdaemon_SyncPiecesServer
- type DownloadTaskRequest
- func (*DownloadTaskRequest) Descriptor() ([]byte, []int)deprecated
- func (x *DownloadTaskRequest) GetDownload() *v2.Download
- func (*DownloadTaskRequest) ProtoMessage()
- func (x *DownloadTaskRequest) ProtoReflect() protoreflect.Message
- func (x *DownloadTaskRequest) Reset()
- func (x *DownloadTaskRequest) String() string
- func (m *DownloadTaskRequest) Validate() error
- func (m *DownloadTaskRequest) ValidateAll() error
- type DownloadTaskRequestMultiError
- type DownloadTaskRequestValidationError
- func (e DownloadTaskRequestValidationError) Cause() error
- func (e DownloadTaskRequestValidationError) Error() string
- func (e DownloadTaskRequestValidationError) ErrorName() string
- func (e DownloadTaskRequestValidationError) Field() string
- func (e DownloadTaskRequestValidationError) Key() bool
- func (e DownloadTaskRequestValidationError) Reason() string
- type DownloadTaskResponse
- func (*DownloadTaskResponse) Descriptor() ([]byte, []int)deprecated
- func (x *DownloadTaskResponse) GetPiece() *v2.Piece
- func (*DownloadTaskResponse) ProtoMessage()
- func (x *DownloadTaskResponse) ProtoReflect() protoreflect.Message
- func (x *DownloadTaskResponse) Reset()
- func (x *DownloadTaskResponse) String() string
- func (m *DownloadTaskResponse) Validate() error
- func (m *DownloadTaskResponse) ValidateAll() error
- type DownloadTaskResponseMultiError
- type DownloadTaskResponseValidationError
- func (e DownloadTaskResponseValidationError) Cause() error
- func (e DownloadTaskResponseValidationError) Error() string
- func (e DownloadTaskResponseValidationError) ErrorName() string
- func (e DownloadTaskResponseValidationError) Field() string
- func (e DownloadTaskResponseValidationError) Key() bool
- func (e DownloadTaskResponseValidationError) Reason() string
- type GetPieceNumbersRequest
- func (*GetPieceNumbersRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetPieceNumbersRequest) GetTaskId() string
- func (*GetPieceNumbersRequest) ProtoMessage()
- func (x *GetPieceNumbersRequest) ProtoReflect() protoreflect.Message
- func (x *GetPieceNumbersRequest) Reset()
- func (x *GetPieceNumbersRequest) String() string
- func (m *GetPieceNumbersRequest) Validate() error
- func (m *GetPieceNumbersRequest) ValidateAll() error
- type GetPieceNumbersRequestMultiError
- type GetPieceNumbersRequestValidationError
- func (e GetPieceNumbersRequestValidationError) Cause() error
- func (e GetPieceNumbersRequestValidationError) Error() string
- func (e GetPieceNumbersRequestValidationError) ErrorName() string
- func (e GetPieceNumbersRequestValidationError) Field() string
- func (e GetPieceNumbersRequestValidationError) Key() bool
- func (e GetPieceNumbersRequestValidationError) Reason() string
- type GetPieceNumbersResponse
- func (*GetPieceNumbersResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetPieceNumbersResponse) GetPieceNumbers() []int32
- func (*GetPieceNumbersResponse) ProtoMessage()
- func (x *GetPieceNumbersResponse) ProtoReflect() protoreflect.Message
- func (x *GetPieceNumbersResponse) Reset()
- func (x *GetPieceNumbersResponse) String() string
- func (m *GetPieceNumbersResponse) Validate() error
- func (m *GetPieceNumbersResponse) ValidateAll() error
- type GetPieceNumbersResponseMultiError
- type GetPieceNumbersResponseValidationError
- func (e GetPieceNumbersResponseValidationError) Cause() error
- func (e GetPieceNumbersResponseValidationError) Error() string
- func (e GetPieceNumbersResponseValidationError) ErrorName() string
- func (e GetPieceNumbersResponseValidationError) Field() string
- func (e GetPieceNumbersResponseValidationError) Key() bool
- func (e GetPieceNumbersResponseValidationError) Reason() string
- type InterestedPiecesRequest
- func (*InterestedPiecesRequest) Descriptor() ([]byte, []int)deprecated
- func (x *InterestedPiecesRequest) GetPieceNumbers() []int32
- func (*InterestedPiecesRequest) ProtoMessage()
- func (x *InterestedPiecesRequest) ProtoReflect() protoreflect.Message
- func (x *InterestedPiecesRequest) Reset()
- func (x *InterestedPiecesRequest) String() string
- func (m *InterestedPiecesRequest) Validate() error
- func (m *InterestedPiecesRequest) ValidateAll() error
- type InterestedPiecesRequestMultiError
- type InterestedPiecesRequestValidationError
- func (e InterestedPiecesRequestValidationError) Cause() error
- func (e InterestedPiecesRequestValidationError) Error() string
- func (e InterestedPiecesRequestValidationError) ErrorName() string
- func (e InterestedPiecesRequestValidationError) Field() string
- func (e InterestedPiecesRequestValidationError) Key() bool
- func (e InterestedPiecesRequestValidationError) Reason() string
- type InterestedPiecesResponse
- func (*InterestedPiecesResponse) Descriptor() ([]byte, []int)deprecated
- func (x *InterestedPiecesResponse) GetPiece() *v2.Piece
- func (*InterestedPiecesResponse) ProtoMessage()
- func (x *InterestedPiecesResponse) ProtoReflect() protoreflect.Message
- func (x *InterestedPiecesResponse) Reset()
- func (x *InterestedPiecesResponse) String() string
- func (m *InterestedPiecesResponse) Validate() error
- func (m *InterestedPiecesResponse) ValidateAll() error
- type InterestedPiecesResponseMultiError
- type InterestedPiecesResponseValidationError
- func (e InterestedPiecesResponseValidationError) Cause() error
- func (e InterestedPiecesResponseValidationError) Error() string
- func (e InterestedPiecesResponseValidationError) ErrorName() string
- func (e InterestedPiecesResponseValidationError) Field() string
- func (e InterestedPiecesResponseValidationError) Key() bool
- func (e InterestedPiecesResponseValidationError) Reason() string
- type StatTaskRequest
- func (*StatTaskRequest) Descriptor() ([]byte, []int)deprecated
- func (x *StatTaskRequest) GetTaskId() string
- func (*StatTaskRequest) ProtoMessage()
- func (x *StatTaskRequest) ProtoReflect() protoreflect.Message
- func (x *StatTaskRequest) Reset()
- func (x *StatTaskRequest) String() string
- func (m *StatTaskRequest) Validate() error
- func (m *StatTaskRequest) ValidateAll() error
- type StatTaskRequestMultiError
- type StatTaskRequestValidationError
- func (e StatTaskRequestValidationError) Cause() error
- func (e StatTaskRequestValidationError) Error() string
- func (e StatTaskRequestValidationError) ErrorName() string
- func (e StatTaskRequestValidationError) Field() string
- func (e StatTaskRequestValidationError) Key() bool
- func (e StatTaskRequestValidationError) Reason() string
- type SyncPiecesRequest
- func (*SyncPiecesRequest) Descriptor() ([]byte, []int)deprecated
- func (x *SyncPiecesRequest) GetInterestedPiecesRequest() *InterestedPiecesRequest
- func (m *SyncPiecesRequest) GetRequest() isSyncPiecesRequest_Request
- func (x *SyncPiecesRequest) GetTaskId() string
- func (*SyncPiecesRequest) ProtoMessage()
- func (x *SyncPiecesRequest) ProtoReflect() protoreflect.Message
- func (x *SyncPiecesRequest) Reset()
- func (x *SyncPiecesRequest) String() string
- func (m *SyncPiecesRequest) Validate() error
- func (m *SyncPiecesRequest) ValidateAll() error
- type SyncPiecesRequestMultiError
- type SyncPiecesRequestValidationError
- func (e SyncPiecesRequestValidationError) Cause() error
- func (e SyncPiecesRequestValidationError) Error() string
- func (e SyncPiecesRequestValidationError) ErrorName() string
- func (e SyncPiecesRequestValidationError) Field() string
- func (e SyncPiecesRequestValidationError) Key() bool
- func (e SyncPiecesRequestValidationError) Reason() string
- type SyncPiecesRequest_InterestedPiecesRequest
- type SyncPiecesResponse
- func (*SyncPiecesResponse) Descriptor() ([]byte, []int)deprecated
- func (x *SyncPiecesResponse) GetInterestedPiecesResponse() *InterestedPiecesResponse
- func (m *SyncPiecesResponse) GetResponse() isSyncPiecesResponse_Response
- func (*SyncPiecesResponse) ProtoMessage()
- func (x *SyncPiecesResponse) ProtoReflect() protoreflect.Message
- func (x *SyncPiecesResponse) Reset()
- func (x *SyncPiecesResponse) String() string
- func (m *SyncPiecesResponse) Validate() error
- func (m *SyncPiecesResponse) ValidateAll() error
- type SyncPiecesResponseMultiError
- type SyncPiecesResponseValidationError
- func (e SyncPiecesResponseValidationError) Cause() error
- func (e SyncPiecesResponseValidationError) Error() string
- func (e SyncPiecesResponseValidationError) ErrorName() string
- func (e SyncPiecesResponseValidationError) Field() string
- func (e SyncPiecesResponseValidationError) Key() bool
- func (e SyncPiecesResponseValidationError) Reason() string
- type SyncPiecesResponse_InterestedPiecesResponse
- type UnimplementedDfdaemonServer
- func (UnimplementedDfdaemonServer) DeleteTask(context.Context, *DeleteTaskRequest) (*emptypb.Empty, error)
- func (UnimplementedDfdaemonServer) DownloadTask(*DownloadTaskRequest, Dfdaemon_DownloadTaskServer) error
- func (UnimplementedDfdaemonServer) GetPieceNumbers(context.Context, *GetPieceNumbersRequest) (*GetPieceNumbersResponse, error)
- func (UnimplementedDfdaemonServer) StatTask(context.Context, *StatTaskRequest) (*v2.Task, error)
- func (UnimplementedDfdaemonServer) SyncPieces(Dfdaemon_SyncPiecesServer) error
- func (UnimplementedDfdaemonServer) UploadTask(context.Context, *UploadTaskRequest) (*emptypb.Empty, error)
- type UnsafeDfdaemonServer
- type UploadTaskRequest
- func (*UploadTaskRequest) Descriptor() ([]byte, []int)deprecated
- func (x *UploadTaskRequest) GetTask() *v2.Task
- func (*UploadTaskRequest) ProtoMessage()
- func (x *UploadTaskRequest) ProtoReflect() protoreflect.Message
- func (x *UploadTaskRequest) Reset()
- func (x *UploadTaskRequest) String() string
- func (m *UploadTaskRequest) Validate() error
- func (m *UploadTaskRequest) ValidateAll() error
- type UploadTaskRequestMultiError
- type UploadTaskRequestValidationError
- func (e UploadTaskRequestValidationError) Cause() error
- func (e UploadTaskRequestValidationError) Error() string
- func (e UploadTaskRequestValidationError) ErrorName() string
- func (e UploadTaskRequestValidationError) Field() string
- func (e UploadTaskRequestValidationError) Key() bool
- func (e UploadTaskRequestValidationError) Reason() string
Constants ¶
This section is empty.
Variables ¶
var Dfdaemon_ServiceDesc = grpc.ServiceDesc{ ServiceName: "dfdaemon.v2.Dfdaemon", HandlerType: (*DfdaemonServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "GetPieceNumbers", Handler: _Dfdaemon_GetPieceNumbers_Handler, }, { MethodName: "UploadTask", Handler: _Dfdaemon_UploadTask_Handler, }, { MethodName: "StatTask", Handler: _Dfdaemon_StatTask_Handler, }, { MethodName: "DeleteTask", Handler: _Dfdaemon_DeleteTask_Handler, }, }, Streams: []grpc.StreamDesc{ { StreamName: "SyncPieces", Handler: _Dfdaemon_SyncPieces_Handler, ServerStreams: true, ClientStreams: true, }, { StreamName: "DownloadTask", Handler: _Dfdaemon_DownloadTask_Handler, ServerStreams: true, }, }, Metadata: "pkg/apis/dfdaemon/v2/dfdaemon.proto", }
Dfdaemon_ServiceDesc is the grpc.ServiceDesc for Dfdaemon service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var File_pkg_apis_dfdaemon_v2_dfdaemon_proto protoreflect.FileDescriptor
Functions ¶
func RegisterDfdaemonServer ¶
func RegisterDfdaemonServer(s grpc.ServiceRegistrar, srv DfdaemonServer)
Types ¶
type DeleteTaskRequest ¶
type DeleteTaskRequest struct { // Task id. TaskId string `protobuf:"bytes,1,opt,name=task_id,json=taskId,proto3" json:"task_id,omitempty"` // contains filtered or unexported fields }
DeleteTaskRequest represents request of DeleteTask.
func (*DeleteTaskRequest) Descriptor
deprecated
func (*DeleteTaskRequest) Descriptor() ([]byte, []int)
Deprecated: Use DeleteTaskRequest.ProtoReflect.Descriptor instead.
func (*DeleteTaskRequest) GetTaskId ¶
func (x *DeleteTaskRequest) GetTaskId() string
func (*DeleteTaskRequest) ProtoMessage ¶
func (*DeleteTaskRequest) ProtoMessage()
func (*DeleteTaskRequest) ProtoReflect ¶
func (x *DeleteTaskRequest) ProtoReflect() protoreflect.Message
func (*DeleteTaskRequest) Reset ¶
func (x *DeleteTaskRequest) Reset()
func (*DeleteTaskRequest) String ¶
func (x *DeleteTaskRequest) String() string
func (*DeleteTaskRequest) Validate ¶
func (m *DeleteTaskRequest) Validate() error
Validate checks the field values on DeleteTaskRequest 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 (*DeleteTaskRequest) ValidateAll ¶
func (m *DeleteTaskRequest) ValidateAll() error
ValidateAll checks the field values on DeleteTaskRequest 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 DeleteTaskRequestMultiError, or nil if none found.
type DeleteTaskRequestMultiError ¶
type DeleteTaskRequestMultiError []error
DeleteTaskRequestMultiError is an error wrapping multiple validation errors returned by DeleteTaskRequest.ValidateAll() if the designated constraints aren't met.
func (DeleteTaskRequestMultiError) AllErrors ¶
func (m DeleteTaskRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (DeleteTaskRequestMultiError) Error ¶
func (m DeleteTaskRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type DeleteTaskRequestValidationError ¶
type DeleteTaskRequestValidationError struct {
// contains filtered or unexported fields
}
DeleteTaskRequestValidationError is the validation error returned by DeleteTaskRequest.Validate if the designated constraints aren't met.
func (DeleteTaskRequestValidationError) Cause ¶
func (e DeleteTaskRequestValidationError) Cause() error
Cause function returns cause value.
func (DeleteTaskRequestValidationError) Error ¶
func (e DeleteTaskRequestValidationError) Error() string
Error satisfies the builtin error interface
func (DeleteTaskRequestValidationError) ErrorName ¶
func (e DeleteTaskRequestValidationError) ErrorName() string
ErrorName returns error name.
func (DeleteTaskRequestValidationError) Field ¶
func (e DeleteTaskRequestValidationError) Field() string
Field function returns field value.
func (DeleteTaskRequestValidationError) Key ¶
func (e DeleteTaskRequestValidationError) Key() bool
Key function returns key value.
func (DeleteTaskRequestValidationError) Reason ¶
func (e DeleteTaskRequestValidationError) Reason() string
Reason function returns reason value.
type DfdaemonClient ¶
type DfdaemonClient interface { // GetPieceNumbers gets piece numbers from the other peer. GetPieceNumbers(ctx context.Context, in *GetPieceNumbersRequest, opts ...grpc.CallOption) (*GetPieceNumbersResponse, error) // SyncPieces syncs pieces from the other peer. SyncPieces(ctx context.Context, opts ...grpc.CallOption) (Dfdaemon_SyncPiecesClient, error) // DownloadTask downloads task back-to-source. DownloadTask(ctx context.Context, in *DownloadTaskRequest, opts ...grpc.CallOption) (Dfdaemon_DownloadTaskClient, error) // UploadTask uploads task to p2p network. UploadTask(ctx context.Context, in *UploadTaskRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) // StatTask stats task information. StatTask(ctx context.Context, in *StatTaskRequest, opts ...grpc.CallOption) (*v2.Task, error) // DeleteTask deletes task from p2p network. DeleteTask(ctx context.Context, in *DeleteTaskRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) }
DfdaemonClient is the client API for Dfdaemon 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 NewDfdaemonClient ¶
func NewDfdaemonClient(cc grpc.ClientConnInterface) DfdaemonClient
type DfdaemonServer ¶
type DfdaemonServer interface { // GetPieceNumbers gets piece numbers from the other peer. GetPieceNumbers(context.Context, *GetPieceNumbersRequest) (*GetPieceNumbersResponse, error) // SyncPieces syncs pieces from the other peer. SyncPieces(Dfdaemon_SyncPiecesServer) error // DownloadTask downloads task back-to-source. DownloadTask(*DownloadTaskRequest, Dfdaemon_DownloadTaskServer) error // UploadTask uploads task to p2p network. UploadTask(context.Context, *UploadTaskRequest) (*emptypb.Empty, error) // StatTask stats task information. StatTask(context.Context, *StatTaskRequest) (*v2.Task, error) // DeleteTask deletes task from p2p network. DeleteTask(context.Context, *DeleteTaskRequest) (*emptypb.Empty, error) }
DfdaemonServer is the server API for Dfdaemon service. All implementations should embed UnimplementedDfdaemonServer for forward compatibility
type Dfdaemon_DownloadTaskClient ¶ added in v2.0.51
type Dfdaemon_DownloadTaskClient interface { Recv() (*DownloadTaskResponse, error) grpc.ClientStream }
type Dfdaemon_DownloadTaskServer ¶ added in v2.0.51
type Dfdaemon_DownloadTaskServer interface { Send(*DownloadTaskResponse) error grpc.ServerStream }
type Dfdaemon_SyncPiecesClient ¶
type Dfdaemon_SyncPiecesClient interface { Send(*SyncPiecesRequest) error Recv() (*SyncPiecesResponse, error) grpc.ClientStream }
type Dfdaemon_SyncPiecesServer ¶
type Dfdaemon_SyncPiecesServer interface { Send(*SyncPiecesResponse) error Recv() (*SyncPiecesRequest, error) grpc.ServerStream }
type DownloadTaskRequest ¶
type DownloadTaskRequest struct { // Download information. Download *v2.Download `protobuf:"bytes,1,opt,name=download,proto3" json:"download,omitempty"` // contains filtered or unexported fields }
DownloadTaskRequest represents request of DownloadTask.
func (*DownloadTaskRequest) Descriptor
deprecated
func (*DownloadTaskRequest) Descriptor() ([]byte, []int)
Deprecated: Use DownloadTaskRequest.ProtoReflect.Descriptor instead.
func (*DownloadTaskRequest) GetDownload ¶
func (x *DownloadTaskRequest) GetDownload() *v2.Download
func (*DownloadTaskRequest) ProtoMessage ¶
func (*DownloadTaskRequest) ProtoMessage()
func (*DownloadTaskRequest) ProtoReflect ¶
func (x *DownloadTaskRequest) ProtoReflect() protoreflect.Message
func (*DownloadTaskRequest) Reset ¶
func (x *DownloadTaskRequest) Reset()
func (*DownloadTaskRequest) String ¶
func (x *DownloadTaskRequest) String() string
func (*DownloadTaskRequest) Validate ¶
func (m *DownloadTaskRequest) Validate() error
Validate checks the field values on DownloadTaskRequest 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 (*DownloadTaskRequest) ValidateAll ¶
func (m *DownloadTaskRequest) ValidateAll() error
ValidateAll checks the field values on DownloadTaskRequest 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 DownloadTaskRequestMultiError, or nil if none found.
type DownloadTaskRequestMultiError ¶
type DownloadTaskRequestMultiError []error
DownloadTaskRequestMultiError is an error wrapping multiple validation errors returned by DownloadTaskRequest.ValidateAll() if the designated constraints aren't met.
func (DownloadTaskRequestMultiError) AllErrors ¶
func (m DownloadTaskRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (DownloadTaskRequestMultiError) Error ¶
func (m DownloadTaskRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type DownloadTaskRequestValidationError ¶
type DownloadTaskRequestValidationError struct {
// contains filtered or unexported fields
}
DownloadTaskRequestValidationError is the validation error returned by DownloadTaskRequest.Validate if the designated constraints aren't met.
func (DownloadTaskRequestValidationError) Cause ¶
func (e DownloadTaskRequestValidationError) Cause() error
Cause function returns cause value.
func (DownloadTaskRequestValidationError) Error ¶
func (e DownloadTaskRequestValidationError) Error() string
Error satisfies the builtin error interface
func (DownloadTaskRequestValidationError) ErrorName ¶
func (e DownloadTaskRequestValidationError) ErrorName() string
ErrorName returns error name.
func (DownloadTaskRequestValidationError) Field ¶
func (e DownloadTaskRequestValidationError) Field() string
Field function returns field value.
func (DownloadTaskRequestValidationError) Key ¶
func (e DownloadTaskRequestValidationError) Key() bool
Key function returns key value.
func (DownloadTaskRequestValidationError) Reason ¶
func (e DownloadTaskRequestValidationError) Reason() string
Reason function returns reason value.
type DownloadTaskResponse ¶ added in v2.0.51
type DownloadTaskResponse struct { // Finished piece of task. Piece *v2.Piece `protobuf:"bytes,1,opt,name=piece,proto3" json:"piece,omitempty"` // contains filtered or unexported fields }
DownloadTaskResponse represents response of DownloadTask.
func (*DownloadTaskResponse) Descriptor
deprecated
added in
v2.0.51
func (*DownloadTaskResponse) Descriptor() ([]byte, []int)
Deprecated: Use DownloadTaskResponse.ProtoReflect.Descriptor instead.
func (*DownloadTaskResponse) GetPiece ¶ added in v2.0.51
func (x *DownloadTaskResponse) GetPiece() *v2.Piece
func (*DownloadTaskResponse) ProtoMessage ¶ added in v2.0.51
func (*DownloadTaskResponse) ProtoMessage()
func (*DownloadTaskResponse) ProtoReflect ¶ added in v2.0.51
func (x *DownloadTaskResponse) ProtoReflect() protoreflect.Message
func (*DownloadTaskResponse) Reset ¶ added in v2.0.51
func (x *DownloadTaskResponse) Reset()
func (*DownloadTaskResponse) String ¶ added in v2.0.51
func (x *DownloadTaskResponse) String() string
func (*DownloadTaskResponse) Validate ¶ added in v2.0.51
func (m *DownloadTaskResponse) Validate() error
Validate checks the field values on DownloadTaskResponse 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 (*DownloadTaskResponse) ValidateAll ¶ added in v2.0.51
func (m *DownloadTaskResponse) ValidateAll() error
ValidateAll checks the field values on DownloadTaskResponse 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 DownloadTaskResponseMultiError, or nil if none found.
type DownloadTaskResponseMultiError ¶ added in v2.0.51
type DownloadTaskResponseMultiError []error
DownloadTaskResponseMultiError is an error wrapping multiple validation errors returned by DownloadTaskResponse.ValidateAll() if the designated constraints aren't met.
func (DownloadTaskResponseMultiError) AllErrors ¶ added in v2.0.51
func (m DownloadTaskResponseMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (DownloadTaskResponseMultiError) Error ¶ added in v2.0.51
func (m DownloadTaskResponseMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type DownloadTaskResponseValidationError ¶ added in v2.0.51
type DownloadTaskResponseValidationError struct {
// contains filtered or unexported fields
}
DownloadTaskResponseValidationError is the validation error returned by DownloadTaskResponse.Validate if the designated constraints aren't met.
func (DownloadTaskResponseValidationError) Cause ¶ added in v2.0.51
func (e DownloadTaskResponseValidationError) Cause() error
Cause function returns cause value.
func (DownloadTaskResponseValidationError) Error ¶ added in v2.0.51
func (e DownloadTaskResponseValidationError) Error() string
Error satisfies the builtin error interface
func (DownloadTaskResponseValidationError) ErrorName ¶ added in v2.0.51
func (e DownloadTaskResponseValidationError) ErrorName() string
ErrorName returns error name.
func (DownloadTaskResponseValidationError) Field ¶ added in v2.0.51
func (e DownloadTaskResponseValidationError) Field() string
Field function returns field value.
func (DownloadTaskResponseValidationError) Key ¶ added in v2.0.51
func (e DownloadTaskResponseValidationError) Key() bool
Key function returns key value.
func (DownloadTaskResponseValidationError) Reason ¶ added in v2.0.51
func (e DownloadTaskResponseValidationError) Reason() string
Reason function returns reason value.
type GetPieceNumbersRequest ¶ added in v2.0.39
type GetPieceNumbersRequest struct { // Task id. TaskId string `protobuf:"bytes,1,opt,name=task_id,json=taskId,proto3" json:"task_id,omitempty"` // contains filtered or unexported fields }
GetPieceNumbersRequest represents gets piece numbers request of GetPieceNumbers.
func (*GetPieceNumbersRequest) Descriptor
deprecated
added in
v2.0.39
func (*GetPieceNumbersRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetPieceNumbersRequest.ProtoReflect.Descriptor instead.
func (*GetPieceNumbersRequest) GetTaskId ¶ added in v2.0.41
func (x *GetPieceNumbersRequest) GetTaskId() string
func (*GetPieceNumbersRequest) ProtoMessage ¶ added in v2.0.39
func (*GetPieceNumbersRequest) ProtoMessage()
func (*GetPieceNumbersRequest) ProtoReflect ¶ added in v2.0.39
func (x *GetPieceNumbersRequest) ProtoReflect() protoreflect.Message
func (*GetPieceNumbersRequest) Reset ¶ added in v2.0.39
func (x *GetPieceNumbersRequest) Reset()
func (*GetPieceNumbersRequest) String ¶ added in v2.0.39
func (x *GetPieceNumbersRequest) String() string
func (*GetPieceNumbersRequest) Validate ¶ added in v2.0.39
func (m *GetPieceNumbersRequest) Validate() error
Validate checks the field values on GetPieceNumbersRequest 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 (*GetPieceNumbersRequest) ValidateAll ¶ added in v2.0.39
func (m *GetPieceNumbersRequest) ValidateAll() error
ValidateAll checks the field values on GetPieceNumbersRequest 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 GetPieceNumbersRequestMultiError, or nil if none found.
type GetPieceNumbersRequestMultiError ¶ added in v2.0.39
type GetPieceNumbersRequestMultiError []error
GetPieceNumbersRequestMultiError is an error wrapping multiple validation errors returned by GetPieceNumbersRequest.ValidateAll() if the designated constraints aren't met.
func (GetPieceNumbersRequestMultiError) AllErrors ¶ added in v2.0.39
func (m GetPieceNumbersRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (GetPieceNumbersRequestMultiError) Error ¶ added in v2.0.39
func (m GetPieceNumbersRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type GetPieceNumbersRequestValidationError ¶ added in v2.0.39
type GetPieceNumbersRequestValidationError struct {
// contains filtered or unexported fields
}
GetPieceNumbersRequestValidationError is the validation error returned by GetPieceNumbersRequest.Validate if the designated constraints aren't met.
func (GetPieceNumbersRequestValidationError) Cause ¶ added in v2.0.39
func (e GetPieceNumbersRequestValidationError) Cause() error
Cause function returns cause value.
func (GetPieceNumbersRequestValidationError) Error ¶ added in v2.0.39
func (e GetPieceNumbersRequestValidationError) Error() string
Error satisfies the builtin error interface
func (GetPieceNumbersRequestValidationError) ErrorName ¶ added in v2.0.39
func (e GetPieceNumbersRequestValidationError) ErrorName() string
ErrorName returns error name.
func (GetPieceNumbersRequestValidationError) Field ¶ added in v2.0.39
func (e GetPieceNumbersRequestValidationError) Field() string
Field function returns field value.
func (GetPieceNumbersRequestValidationError) Key ¶ added in v2.0.39
func (e GetPieceNumbersRequestValidationError) Key() bool
Key function returns key value.
func (GetPieceNumbersRequestValidationError) Reason ¶ added in v2.0.39
func (e GetPieceNumbersRequestValidationError) Reason() string
Reason function returns reason value.
type GetPieceNumbersResponse ¶ added in v2.0.39
type GetPieceNumbersResponse struct { // Piece numbers. PieceNumbers []int32 `protobuf:"varint,1,rep,packed,name=piece_numbers,json=pieceNumbers,proto3" json:"piece_numbers,omitempty"` // contains filtered or unexported fields }
GetPieceNumbersResponse represents gets piece numbers response of GetPieceNumbers.
func (*GetPieceNumbersResponse) Descriptor
deprecated
added in
v2.0.39
func (*GetPieceNumbersResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetPieceNumbersResponse.ProtoReflect.Descriptor instead.
func (*GetPieceNumbersResponse) GetPieceNumbers ¶ added in v2.0.39
func (x *GetPieceNumbersResponse) GetPieceNumbers() []int32
func (*GetPieceNumbersResponse) ProtoMessage ¶ added in v2.0.39
func (*GetPieceNumbersResponse) ProtoMessage()
func (*GetPieceNumbersResponse) ProtoReflect ¶ added in v2.0.39
func (x *GetPieceNumbersResponse) ProtoReflect() protoreflect.Message
func (*GetPieceNumbersResponse) Reset ¶ added in v2.0.39
func (x *GetPieceNumbersResponse) Reset()
func (*GetPieceNumbersResponse) String ¶ added in v2.0.39
func (x *GetPieceNumbersResponse) String() string
func (*GetPieceNumbersResponse) Validate ¶ added in v2.0.39
func (m *GetPieceNumbersResponse) Validate() error
Validate checks the field values on GetPieceNumbersResponse 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 (*GetPieceNumbersResponse) ValidateAll ¶ added in v2.0.39
func (m *GetPieceNumbersResponse) ValidateAll() error
ValidateAll checks the field values on GetPieceNumbersResponse 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 GetPieceNumbersResponseMultiError, or nil if none found.
type GetPieceNumbersResponseMultiError ¶ added in v2.0.39
type GetPieceNumbersResponseMultiError []error
GetPieceNumbersResponseMultiError is an error wrapping multiple validation errors returned by GetPieceNumbersResponse.ValidateAll() if the designated constraints aren't met.
func (GetPieceNumbersResponseMultiError) AllErrors ¶ added in v2.0.39
func (m GetPieceNumbersResponseMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (GetPieceNumbersResponseMultiError) Error ¶ added in v2.0.39
func (m GetPieceNumbersResponseMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type GetPieceNumbersResponseValidationError ¶ added in v2.0.39
type GetPieceNumbersResponseValidationError struct {
// contains filtered or unexported fields
}
GetPieceNumbersResponseValidationError is the validation error returned by GetPieceNumbersResponse.Validate if the designated constraints aren't met.
func (GetPieceNumbersResponseValidationError) Cause ¶ added in v2.0.39
func (e GetPieceNumbersResponseValidationError) Cause() error
Cause function returns cause value.
func (GetPieceNumbersResponseValidationError) Error ¶ added in v2.0.39
func (e GetPieceNumbersResponseValidationError) Error() string
Error satisfies the builtin error interface
func (GetPieceNumbersResponseValidationError) ErrorName ¶ added in v2.0.39
func (e GetPieceNumbersResponseValidationError) ErrorName() string
ErrorName returns error name.
func (GetPieceNumbersResponseValidationError) Field ¶ added in v2.0.39
func (e GetPieceNumbersResponseValidationError) Field() string
Field function returns field value.
func (GetPieceNumbersResponseValidationError) Key ¶ added in v2.0.39
func (e GetPieceNumbersResponseValidationError) Key() bool
Key function returns key value.
func (GetPieceNumbersResponseValidationError) Reason ¶ added in v2.0.39
func (e GetPieceNumbersResponseValidationError) Reason() string
Reason function returns reason value.
type InterestedPiecesRequest ¶
type InterestedPiecesRequest struct { // Interested piece numbers. PieceNumbers []int32 `protobuf:"varint,1,rep,packed,name=piece_numbers,json=pieceNumbers,proto3" json:"piece_numbers,omitempty"` // contains filtered or unexported fields }
InterestedPiecesRequest represents interested pieces request of SyncPiecesRequest.
func (*InterestedPiecesRequest) Descriptor
deprecated
func (*InterestedPiecesRequest) Descriptor() ([]byte, []int)
Deprecated: Use InterestedPiecesRequest.ProtoReflect.Descriptor instead.
func (*InterestedPiecesRequest) GetPieceNumbers ¶
func (x *InterestedPiecesRequest) GetPieceNumbers() []int32
func (*InterestedPiecesRequest) ProtoMessage ¶
func (*InterestedPiecesRequest) ProtoMessage()
func (*InterestedPiecesRequest) ProtoReflect ¶
func (x *InterestedPiecesRequest) ProtoReflect() protoreflect.Message
func (*InterestedPiecesRequest) Reset ¶
func (x *InterestedPiecesRequest) Reset()
func (*InterestedPiecesRequest) String ¶
func (x *InterestedPiecesRequest) String() string
func (*InterestedPiecesRequest) Validate ¶
func (m *InterestedPiecesRequest) Validate() error
Validate checks the field values on InterestedPiecesRequest 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 (*InterestedPiecesRequest) ValidateAll ¶
func (m *InterestedPiecesRequest) ValidateAll() error
ValidateAll checks the field values on InterestedPiecesRequest 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 InterestedPiecesRequestMultiError, or nil if none found.
type InterestedPiecesRequestMultiError ¶
type InterestedPiecesRequestMultiError []error
InterestedPiecesRequestMultiError is an error wrapping multiple validation errors returned by InterestedPiecesRequest.ValidateAll() if the designated constraints aren't met.
func (InterestedPiecesRequestMultiError) AllErrors ¶
func (m InterestedPiecesRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (InterestedPiecesRequestMultiError) Error ¶
func (m InterestedPiecesRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type InterestedPiecesRequestValidationError ¶
type InterestedPiecesRequestValidationError struct {
// contains filtered or unexported fields
}
InterestedPiecesRequestValidationError is the validation error returned by InterestedPiecesRequest.Validate if the designated constraints aren't met.
func (InterestedPiecesRequestValidationError) Cause ¶
func (e InterestedPiecesRequestValidationError) Cause() error
Cause function returns cause value.
func (InterestedPiecesRequestValidationError) Error ¶
func (e InterestedPiecesRequestValidationError) Error() string
Error satisfies the builtin error interface
func (InterestedPiecesRequestValidationError) ErrorName ¶
func (e InterestedPiecesRequestValidationError) ErrorName() string
ErrorName returns error name.
func (InterestedPiecesRequestValidationError) Field ¶
func (e InterestedPiecesRequestValidationError) Field() string
Field function returns field value.
func (InterestedPiecesRequestValidationError) Key ¶
func (e InterestedPiecesRequestValidationError) Key() bool
Key function returns key value.
func (InterestedPiecesRequestValidationError) Reason ¶
func (e InterestedPiecesRequestValidationError) Reason() string
Reason function returns reason value.
type InterestedPiecesResponse ¶
type InterestedPiecesResponse struct { // Interested piece of task. Piece *v2.Piece `protobuf:"bytes,1,opt,name=piece,proto3" json:"piece,omitempty"` // contains filtered or unexported fields }
InterestedPiecesResponse represents interested pieces response of SyncPiecesResponse.
func (*InterestedPiecesResponse) Descriptor
deprecated
func (*InterestedPiecesResponse) Descriptor() ([]byte, []int)
Deprecated: Use InterestedPiecesResponse.ProtoReflect.Descriptor instead.
func (*InterestedPiecesResponse) GetPiece ¶ added in v2.0.37
func (x *InterestedPiecesResponse) GetPiece() *v2.Piece
func (*InterestedPiecesResponse) ProtoMessage ¶
func (*InterestedPiecesResponse) ProtoMessage()
func (*InterestedPiecesResponse) ProtoReflect ¶
func (x *InterestedPiecesResponse) ProtoReflect() protoreflect.Message
func (*InterestedPiecesResponse) Reset ¶
func (x *InterestedPiecesResponse) Reset()
func (*InterestedPiecesResponse) String ¶
func (x *InterestedPiecesResponse) String() string
func (*InterestedPiecesResponse) Validate ¶
func (m *InterestedPiecesResponse) Validate() error
Validate checks the field values on InterestedPiecesResponse 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 (*InterestedPiecesResponse) ValidateAll ¶
func (m *InterestedPiecesResponse) ValidateAll() error
ValidateAll checks the field values on InterestedPiecesResponse 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 InterestedPiecesResponseMultiError, or nil if none found.
type InterestedPiecesResponseMultiError ¶
type InterestedPiecesResponseMultiError []error
InterestedPiecesResponseMultiError is an error wrapping multiple validation errors returned by InterestedPiecesResponse.ValidateAll() if the designated constraints aren't met.
func (InterestedPiecesResponseMultiError) AllErrors ¶
func (m InterestedPiecesResponseMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (InterestedPiecesResponseMultiError) Error ¶
func (m InterestedPiecesResponseMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type InterestedPiecesResponseValidationError ¶
type InterestedPiecesResponseValidationError struct {
// contains filtered or unexported fields
}
InterestedPiecesResponseValidationError is the validation error returned by InterestedPiecesResponse.Validate if the designated constraints aren't met.
func (InterestedPiecesResponseValidationError) Cause ¶
func (e InterestedPiecesResponseValidationError) Cause() error
Cause function returns cause value.
func (InterestedPiecesResponseValidationError) Error ¶
func (e InterestedPiecesResponseValidationError) Error() string
Error satisfies the builtin error interface
func (InterestedPiecesResponseValidationError) ErrorName ¶
func (e InterestedPiecesResponseValidationError) ErrorName() string
ErrorName returns error name.
func (InterestedPiecesResponseValidationError) Field ¶
func (e InterestedPiecesResponseValidationError) Field() string
Field function returns field value.
func (InterestedPiecesResponseValidationError) Key ¶
func (e InterestedPiecesResponseValidationError) Key() bool
Key function returns key value.
func (InterestedPiecesResponseValidationError) Reason ¶
func (e InterestedPiecesResponseValidationError) Reason() string
Reason function returns reason value.
type StatTaskRequest ¶
type StatTaskRequest struct { // Task id. TaskId string `protobuf:"bytes,1,opt,name=task_id,json=taskId,proto3" json:"task_id,omitempty"` // contains filtered or unexported fields }
StatTaskRequest represents request of StatTask.
func (*StatTaskRequest) Descriptor
deprecated
func (*StatTaskRequest) Descriptor() ([]byte, []int)
Deprecated: Use StatTaskRequest.ProtoReflect.Descriptor instead.
func (*StatTaskRequest) GetTaskId ¶
func (x *StatTaskRequest) GetTaskId() string
func (*StatTaskRequest) ProtoMessage ¶
func (*StatTaskRequest) ProtoMessage()
func (*StatTaskRequest) ProtoReflect ¶
func (x *StatTaskRequest) ProtoReflect() protoreflect.Message
func (*StatTaskRequest) Reset ¶
func (x *StatTaskRequest) Reset()
func (*StatTaskRequest) String ¶
func (x *StatTaskRequest) String() string
func (*StatTaskRequest) Validate ¶
func (m *StatTaskRequest) Validate() error
Validate checks the field values on StatTaskRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*StatTaskRequest) ValidateAll ¶
func (m *StatTaskRequest) ValidateAll() error
ValidateAll checks the field values on StatTaskRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in StatTaskRequestMultiError, or nil if none found.
type StatTaskRequestMultiError ¶
type StatTaskRequestMultiError []error
StatTaskRequestMultiError is an error wrapping multiple validation errors returned by StatTaskRequest.ValidateAll() if the designated constraints aren't met.
func (StatTaskRequestMultiError) AllErrors ¶
func (m StatTaskRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (StatTaskRequestMultiError) Error ¶
func (m StatTaskRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type StatTaskRequestValidationError ¶
type StatTaskRequestValidationError struct {
// contains filtered or unexported fields
}
StatTaskRequestValidationError is the validation error returned by StatTaskRequest.Validate if the designated constraints aren't met.
func (StatTaskRequestValidationError) Cause ¶
func (e StatTaskRequestValidationError) Cause() error
Cause function returns cause value.
func (StatTaskRequestValidationError) Error ¶
func (e StatTaskRequestValidationError) Error() string
Error satisfies the builtin error interface
func (StatTaskRequestValidationError) ErrorName ¶
func (e StatTaskRequestValidationError) ErrorName() string
ErrorName returns error name.
func (StatTaskRequestValidationError) Field ¶
func (e StatTaskRequestValidationError) Field() string
Field function returns field value.
func (StatTaskRequestValidationError) Key ¶
func (e StatTaskRequestValidationError) Key() bool
Key function returns key value.
func (StatTaskRequestValidationError) Reason ¶
func (e StatTaskRequestValidationError) Reason() string
Reason function returns reason value.
type SyncPiecesRequest ¶
type SyncPiecesRequest struct { // Task id. TaskId string `protobuf:"bytes,1,opt,name=task_id,json=taskId,proto3" json:"task_id,omitempty"` // Types that are assignable to Request: // // *SyncPiecesRequest_InterestedPiecesRequest Request isSyncPiecesRequest_Request `protobuf_oneof:"request"` // contains filtered or unexported fields }
SyncPiecesRequest represents request of AnnouncePeer.
func (*SyncPiecesRequest) Descriptor
deprecated
func (*SyncPiecesRequest) Descriptor() ([]byte, []int)
Deprecated: Use SyncPiecesRequest.ProtoReflect.Descriptor instead.
func (*SyncPiecesRequest) GetInterestedPiecesRequest ¶
func (x *SyncPiecesRequest) GetInterestedPiecesRequest() *InterestedPiecesRequest
func (*SyncPiecesRequest) GetRequest ¶
func (m *SyncPiecesRequest) GetRequest() isSyncPiecesRequest_Request
func (*SyncPiecesRequest) GetTaskId ¶ added in v2.0.26
func (x *SyncPiecesRequest) GetTaskId() string
func (*SyncPiecesRequest) ProtoMessage ¶
func (*SyncPiecesRequest) ProtoMessage()
func (*SyncPiecesRequest) ProtoReflect ¶
func (x *SyncPiecesRequest) ProtoReflect() protoreflect.Message
func (*SyncPiecesRequest) Reset ¶
func (x *SyncPiecesRequest) Reset()
func (*SyncPiecesRequest) String ¶
func (x *SyncPiecesRequest) String() string
func (*SyncPiecesRequest) Validate ¶
func (m *SyncPiecesRequest) Validate() error
Validate checks the field values on SyncPiecesRequest 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 (*SyncPiecesRequest) ValidateAll ¶
func (m *SyncPiecesRequest) ValidateAll() error
ValidateAll checks the field values on SyncPiecesRequest 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 SyncPiecesRequestMultiError, or nil if none found.
type SyncPiecesRequestMultiError ¶
type SyncPiecesRequestMultiError []error
SyncPiecesRequestMultiError is an error wrapping multiple validation errors returned by SyncPiecesRequest.ValidateAll() if the designated constraints aren't met.
func (SyncPiecesRequestMultiError) AllErrors ¶
func (m SyncPiecesRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (SyncPiecesRequestMultiError) Error ¶
func (m SyncPiecesRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type SyncPiecesRequestValidationError ¶
type SyncPiecesRequestValidationError struct {
// contains filtered or unexported fields
}
SyncPiecesRequestValidationError is the validation error returned by SyncPiecesRequest.Validate if the designated constraints aren't met.
func (SyncPiecesRequestValidationError) Cause ¶
func (e SyncPiecesRequestValidationError) Cause() error
Cause function returns cause value.
func (SyncPiecesRequestValidationError) Error ¶
func (e SyncPiecesRequestValidationError) Error() string
Error satisfies the builtin error interface
func (SyncPiecesRequestValidationError) ErrorName ¶
func (e SyncPiecesRequestValidationError) ErrorName() string
ErrorName returns error name.
func (SyncPiecesRequestValidationError) Field ¶
func (e SyncPiecesRequestValidationError) Field() string
Field function returns field value.
func (SyncPiecesRequestValidationError) Key ¶
func (e SyncPiecesRequestValidationError) Key() bool
Key function returns key value.
func (SyncPiecesRequestValidationError) Reason ¶
func (e SyncPiecesRequestValidationError) Reason() string
Reason function returns reason value.
type SyncPiecesRequest_InterestedPiecesRequest ¶
type SyncPiecesRequest_InterestedPiecesRequest struct {
InterestedPiecesRequest *InterestedPiecesRequest `protobuf:"bytes,2,opt,name=interested_pieces_request,json=interestedPiecesRequest,proto3,oneof"`
}
type SyncPiecesResponse ¶
type SyncPiecesResponse struct { // Types that are assignable to Response: // // *SyncPiecesResponse_InterestedPiecesResponse Response isSyncPiecesResponse_Response `protobuf_oneof:"response"` // contains filtered or unexported fields }
SyncPiecesResponse represents response of SyncPieces.
func (*SyncPiecesResponse) Descriptor
deprecated
func (*SyncPiecesResponse) Descriptor() ([]byte, []int)
Deprecated: Use SyncPiecesResponse.ProtoReflect.Descriptor instead.
func (*SyncPiecesResponse) GetInterestedPiecesResponse ¶
func (x *SyncPiecesResponse) GetInterestedPiecesResponse() *InterestedPiecesResponse
func (*SyncPiecesResponse) GetResponse ¶
func (m *SyncPiecesResponse) GetResponse() isSyncPiecesResponse_Response
func (*SyncPiecesResponse) ProtoMessage ¶
func (*SyncPiecesResponse) ProtoMessage()
func (*SyncPiecesResponse) ProtoReflect ¶
func (x *SyncPiecesResponse) ProtoReflect() protoreflect.Message
func (*SyncPiecesResponse) Reset ¶
func (x *SyncPiecesResponse) Reset()
func (*SyncPiecesResponse) String ¶
func (x *SyncPiecesResponse) String() string
func (*SyncPiecesResponse) Validate ¶
func (m *SyncPiecesResponse) Validate() error
Validate checks the field values on SyncPiecesResponse 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 (*SyncPiecesResponse) ValidateAll ¶
func (m *SyncPiecesResponse) ValidateAll() error
ValidateAll checks the field values on SyncPiecesResponse 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 SyncPiecesResponseMultiError, or nil if none found.
type SyncPiecesResponseMultiError ¶
type SyncPiecesResponseMultiError []error
SyncPiecesResponseMultiError is an error wrapping multiple validation errors returned by SyncPiecesResponse.ValidateAll() if the designated constraints aren't met.
func (SyncPiecesResponseMultiError) AllErrors ¶
func (m SyncPiecesResponseMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (SyncPiecesResponseMultiError) Error ¶
func (m SyncPiecesResponseMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type SyncPiecesResponseValidationError ¶
type SyncPiecesResponseValidationError struct {
// contains filtered or unexported fields
}
SyncPiecesResponseValidationError is the validation error returned by SyncPiecesResponse.Validate if the designated constraints aren't met.
func (SyncPiecesResponseValidationError) Cause ¶
func (e SyncPiecesResponseValidationError) Cause() error
Cause function returns cause value.
func (SyncPiecesResponseValidationError) Error ¶
func (e SyncPiecesResponseValidationError) Error() string
Error satisfies the builtin error interface
func (SyncPiecesResponseValidationError) ErrorName ¶
func (e SyncPiecesResponseValidationError) ErrorName() string
ErrorName returns error name.
func (SyncPiecesResponseValidationError) Field ¶
func (e SyncPiecesResponseValidationError) Field() string
Field function returns field value.
func (SyncPiecesResponseValidationError) Key ¶
func (e SyncPiecesResponseValidationError) Key() bool
Key function returns key value.
func (SyncPiecesResponseValidationError) Reason ¶
func (e SyncPiecesResponseValidationError) Reason() string
Reason function returns reason value.
type SyncPiecesResponse_InterestedPiecesResponse ¶
type SyncPiecesResponse_InterestedPiecesResponse struct {
InterestedPiecesResponse *InterestedPiecesResponse `protobuf:"bytes,1,opt,name=interested_pieces_response,json=interestedPiecesResponse,proto3,oneof"`
}
type UnimplementedDfdaemonServer ¶
type UnimplementedDfdaemonServer struct { }
UnimplementedDfdaemonServer should be embedded to have forward compatible implementations.
func (UnimplementedDfdaemonServer) DeleteTask ¶
func (UnimplementedDfdaemonServer) DeleteTask(context.Context, *DeleteTaskRequest) (*emptypb.Empty, error)
func (UnimplementedDfdaemonServer) DownloadTask ¶
func (UnimplementedDfdaemonServer) DownloadTask(*DownloadTaskRequest, Dfdaemon_DownloadTaskServer) error
func (UnimplementedDfdaemonServer) GetPieceNumbers ¶ added in v2.0.40
func (UnimplementedDfdaemonServer) GetPieceNumbers(context.Context, *GetPieceNumbersRequest) (*GetPieceNumbersResponse, error)
func (UnimplementedDfdaemonServer) StatTask ¶
func (UnimplementedDfdaemonServer) StatTask(context.Context, *StatTaskRequest) (*v2.Task, error)
func (UnimplementedDfdaemonServer) SyncPieces ¶
func (UnimplementedDfdaemonServer) SyncPieces(Dfdaemon_SyncPiecesServer) error
func (UnimplementedDfdaemonServer) UploadTask ¶
func (UnimplementedDfdaemonServer) UploadTask(context.Context, *UploadTaskRequest) (*emptypb.Empty, error)
type UnsafeDfdaemonServer ¶
type UnsafeDfdaemonServer interface {
// contains filtered or unexported methods
}
UnsafeDfdaemonServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to DfdaemonServer will result in compilation errors.
type UploadTaskRequest ¶
type UploadTaskRequest struct { // Task metadata. Task *v2.Task `protobuf:"bytes,1,opt,name=task,proto3" json:"task,omitempty"` // contains filtered or unexported fields }
UploadTaskRequest represents request of UploadTask.
func (*UploadTaskRequest) Descriptor
deprecated
func (*UploadTaskRequest) Descriptor() ([]byte, []int)
Deprecated: Use UploadTaskRequest.ProtoReflect.Descriptor instead.
func (*UploadTaskRequest) GetTask ¶
func (x *UploadTaskRequest) GetTask() *v2.Task
func (*UploadTaskRequest) ProtoMessage ¶
func (*UploadTaskRequest) ProtoMessage()
func (*UploadTaskRequest) ProtoReflect ¶
func (x *UploadTaskRequest) ProtoReflect() protoreflect.Message
func (*UploadTaskRequest) Reset ¶
func (x *UploadTaskRequest) Reset()
func (*UploadTaskRequest) String ¶
func (x *UploadTaskRequest) String() string
func (*UploadTaskRequest) Validate ¶
func (m *UploadTaskRequest) Validate() error
Validate checks the field values on UploadTaskRequest 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 (*UploadTaskRequest) ValidateAll ¶
func (m *UploadTaskRequest) ValidateAll() error
ValidateAll checks the field values on UploadTaskRequest 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 UploadTaskRequestMultiError, or nil if none found.
type UploadTaskRequestMultiError ¶
type UploadTaskRequestMultiError []error
UploadTaskRequestMultiError is an error wrapping multiple validation errors returned by UploadTaskRequest.ValidateAll() if the designated constraints aren't met.
func (UploadTaskRequestMultiError) AllErrors ¶
func (m UploadTaskRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (UploadTaskRequestMultiError) Error ¶
func (m UploadTaskRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type UploadTaskRequestValidationError ¶
type UploadTaskRequestValidationError struct {
// contains filtered or unexported fields
}
UploadTaskRequestValidationError is the validation error returned by UploadTaskRequest.Validate if the designated constraints aren't met.
func (UploadTaskRequestValidationError) Cause ¶
func (e UploadTaskRequestValidationError) Cause() error
Cause function returns cause value.
func (UploadTaskRequestValidationError) Error ¶
func (e UploadTaskRequestValidationError) Error() string
Error satisfies the builtin error interface
func (UploadTaskRequestValidationError) ErrorName ¶
func (e UploadTaskRequestValidationError) ErrorName() string
ErrorName returns error name.
func (UploadTaskRequestValidationError) Field ¶
func (e UploadTaskRequestValidationError) Field() string
Field function returns field value.
func (UploadTaskRequestValidationError) Key ¶
func (e UploadTaskRequestValidationError) Key() bool
Key function returns key value.
func (UploadTaskRequestValidationError) Reason ¶
func (e UploadTaskRequestValidationError) Reason() string
Reason function returns reason value.