dfdaemon

package
v2.0.59 Latest Latest
Warning

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

Go to latest
Published: Dec 6, 2023 License: Apache-2.0 Imports: 23 Imported by: 8

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Dfdaemon_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "dfdaemon.v2.Dfdaemon",
	HandlerType: (*DfdaemonServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "GetPieceNumbers",
			Handler:    _Dfdaemon_GetPieceNumbers_Handler,
		},
		{
			MethodName: "DownloadPiece",
			Handler:    _Dfdaemon_DownloadPiece_Handler,
		},
		{
			MethodName: "UploadTask",
			Handler:    _Dfdaemon_UploadTask_Handler,
		},
		{
			MethodName: "StatTask",
			Handler:    _Dfdaemon_StatTask_Handler,
		},
		{
			MethodName: "DeleteTask",
			Handler:    _Dfdaemon_DeleteTask_Handler,
		},
	},
	Streams: []grpc.StreamDesc{
		{
			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)

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

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

Cause function returns cause value.

func (DeleteTaskRequestValidationError) Error

Error satisfies the builtin error interface

func (DeleteTaskRequestValidationError) ErrorName

ErrorName returns error name.

func (DeleteTaskRequestValidationError) Field

Field function returns field value.

func (DeleteTaskRequestValidationError) Key

Key function returns key value.

func (DeleteTaskRequestValidationError) Reason

Reason function returns reason value.

type DfdaemonClient

type DfdaemonClient interface {
	// GetPieceNumbers gets piece numbers from the remote peer.
	GetPieceNumbers(ctx context.Context, in *GetPieceNumbersRequest, opts ...grpc.CallOption) (*GetPieceNumbersResponse, error)
	// DownloadPiece downloads piece from the remote peer.
	DownloadPiece(ctx context.Context, in *DownloadPieceRequest, opts ...grpc.CallOption) (*DownloadPieceResponse, 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 remote peer.
	GetPieceNumbers(context.Context, *GetPieceNumbersRequest) (*GetPieceNumbersResponse, error)
	// DownloadPiece downloads piece from the remote peer.
	DownloadPiece(context.Context, *DownloadPieceRequest) (*DownloadPieceResponse, 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 DownloadPieceRequest added in v2.0.59

type DownloadPieceRequest struct {

	// Task id.
	TaskId string `protobuf:"bytes,1,opt,name=task_id,json=taskId,proto3" json:"task_id,omitempty"`
	// Piece number.
	PieceNumber uint32 `protobuf:"varint,2,opt,name=piece_number,json=pieceNumber,proto3" json:"piece_number,omitempty"`
	// contains filtered or unexported fields
}

DownloadPieceRequest represents request of DownloadPiece.

func (*DownloadPieceRequest) Descriptor deprecated added in v2.0.59

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

Deprecated: Use DownloadPieceRequest.ProtoReflect.Descriptor instead.

func (*DownloadPieceRequest) GetPieceNumber added in v2.0.59

func (x *DownloadPieceRequest) GetPieceNumber() uint32

func (*DownloadPieceRequest) GetTaskId added in v2.0.59

func (x *DownloadPieceRequest) GetTaskId() string

func (*DownloadPieceRequest) ProtoMessage added in v2.0.59

func (*DownloadPieceRequest) ProtoMessage()

func (*DownloadPieceRequest) ProtoReflect added in v2.0.59

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

func (*DownloadPieceRequest) Reset added in v2.0.59

func (x *DownloadPieceRequest) Reset()

func (*DownloadPieceRequest) String added in v2.0.59

func (x *DownloadPieceRequest) String() string

func (*DownloadPieceRequest) Validate added in v2.0.59

func (m *DownloadPieceRequest) Validate() error

Validate checks the field values on DownloadPieceRequest 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 (*DownloadPieceRequest) ValidateAll added in v2.0.59

func (m *DownloadPieceRequest) ValidateAll() error

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

type DownloadPieceRequestMultiError added in v2.0.59

type DownloadPieceRequestMultiError []error

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

func (DownloadPieceRequestMultiError) AllErrors added in v2.0.59

func (m DownloadPieceRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (DownloadPieceRequestMultiError) Error added in v2.0.59

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

type DownloadPieceRequestValidationError added in v2.0.59

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

DownloadPieceRequestValidationError is the validation error returned by DownloadPieceRequest.Validate if the designated constraints aren't met.

func (DownloadPieceRequestValidationError) Cause added in v2.0.59

Cause function returns cause value.

func (DownloadPieceRequestValidationError) Error added in v2.0.59

Error satisfies the builtin error interface

func (DownloadPieceRequestValidationError) ErrorName added in v2.0.59

ErrorName returns error name.

func (DownloadPieceRequestValidationError) Field added in v2.0.59

Field function returns field value.

func (DownloadPieceRequestValidationError) Key added in v2.0.59

Key function returns key value.

func (DownloadPieceRequestValidationError) Reason added in v2.0.59

Reason function returns reason value.

type DownloadPieceResponse added in v2.0.59

type DownloadPieceResponse struct {

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

DownloadPieceResponse represents response of DownloadPieces.

func (*DownloadPieceResponse) Descriptor deprecated added in v2.0.59

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

Deprecated: Use DownloadPieceResponse.ProtoReflect.Descriptor instead.

func (*DownloadPieceResponse) GetPiece added in v2.0.59

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

func (*DownloadPieceResponse) ProtoMessage added in v2.0.59

func (*DownloadPieceResponse) ProtoMessage()

func (*DownloadPieceResponse) ProtoReflect added in v2.0.59

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

func (*DownloadPieceResponse) Reset added in v2.0.59

func (x *DownloadPieceResponse) Reset()

func (*DownloadPieceResponse) String added in v2.0.59

func (x *DownloadPieceResponse) String() string

func (*DownloadPieceResponse) Validate added in v2.0.59

func (m *DownloadPieceResponse) Validate() error

Validate checks the field values on DownloadPieceResponse 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 (*DownloadPieceResponse) ValidateAll added in v2.0.59

func (m *DownloadPieceResponse) ValidateAll() error

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

type DownloadPieceResponseMultiError added in v2.0.59

type DownloadPieceResponseMultiError []error

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

func (DownloadPieceResponseMultiError) AllErrors added in v2.0.59

func (m DownloadPieceResponseMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (DownloadPieceResponseMultiError) Error added in v2.0.59

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

type DownloadPieceResponseValidationError added in v2.0.59

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

DownloadPieceResponseValidationError is the validation error returned by DownloadPieceResponse.Validate if the designated constraints aren't met.

func (DownloadPieceResponseValidationError) Cause added in v2.0.59

Cause function returns cause value.

func (DownloadPieceResponseValidationError) Error added in v2.0.59

Error satisfies the builtin error interface

func (DownloadPieceResponseValidationError) ErrorName added in v2.0.59

ErrorName returns error name.

func (DownloadPieceResponseValidationError) Field added in v2.0.59

Field function returns field value.

func (DownloadPieceResponseValidationError) Key added in v2.0.59

Key function returns key value.

func (DownloadPieceResponseValidationError) Reason added in v2.0.59

Reason function returns reason value.

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

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

Cause function returns cause value.

func (DownloadTaskRequestValidationError) Error

Error satisfies the builtin error interface

func (DownloadTaskRequestValidationError) ErrorName

ErrorName returns error name.

func (DownloadTaskRequestValidationError) Field

Field function returns field value.

func (DownloadTaskRequestValidationError) Key

Key function returns key value.

func (DownloadTaskRequestValidationError) Reason

Reason function returns reason value.

type DownloadTaskResponse added in v2.0.51

type DownloadTaskResponse struct {

	// Task content length.
	ContentLength uint64 `protobuf:"varint,1,opt,name=content_length,json=contentLength,proto3" json:"content_length,omitempty"`
	// Finished piece of task.
	Piece *v2.Piece `protobuf:"bytes,2,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) GetContentLength added in v2.0.54

func (x *DownloadTaskResponse) GetContentLength() uint64

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

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

Cause function returns cause value.

func (DownloadTaskResponseValidationError) Error added in v2.0.51

Error satisfies the builtin error interface

func (DownloadTaskResponseValidationError) ErrorName added in v2.0.51

ErrorName returns error name.

func (DownloadTaskResponseValidationError) Field added in v2.0.51

Field function returns field value.

func (DownloadTaskResponseValidationError) Key added in v2.0.51

Key function returns key value.

func (DownloadTaskResponseValidationError) Reason added in v2.0.51

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

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

Cause function returns cause value.

func (GetPieceNumbersRequestValidationError) Error added in v2.0.39

Error satisfies the builtin error interface

func (GetPieceNumbersRequestValidationError) ErrorName added in v2.0.39

ErrorName returns error name.

func (GetPieceNumbersRequestValidationError) Field added in v2.0.39

Field function returns field value.

func (GetPieceNumbersRequestValidationError) Key added in v2.0.39

Key function returns key value.

func (GetPieceNumbersRequestValidationError) Reason added in v2.0.39

Reason function returns reason value.

type GetPieceNumbersResponse added in v2.0.39

type GetPieceNumbersResponse struct {

	// Piece numbers.
	PieceNumbers []uint32 `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() []uint32

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

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

Cause function returns cause value.

func (GetPieceNumbersResponseValidationError) Error added in v2.0.39

Error satisfies the builtin error interface

func (GetPieceNumbersResponseValidationError) ErrorName added in v2.0.39

ErrorName returns error name.

func (GetPieceNumbersResponseValidationError) Field added in v2.0.39

Field function returns field value.

func (GetPieceNumbersResponseValidationError) Key added in v2.0.39

Key function returns key value.

func (GetPieceNumbersResponseValidationError) Reason added in v2.0.39

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

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 UnimplementedDfdaemonServer

type UnimplementedDfdaemonServer struct {
}

UnimplementedDfdaemonServer should be embedded to have forward compatible implementations.

func (UnimplementedDfdaemonServer) DeleteTask

func (UnimplementedDfdaemonServer) DownloadPiece added in v2.0.59

func (UnimplementedDfdaemonServer) DownloadTask

func (UnimplementedDfdaemonServer) GetPieceNumbers added in v2.0.40

func (UnimplementedDfdaemonServer) StatTask

func (UnimplementedDfdaemonServer) UploadTask

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

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

Cause function returns cause value.

func (UploadTaskRequestValidationError) Error

Error satisfies the builtin error interface

func (UploadTaskRequestValidationError) ErrorName

ErrorName returns error name.

func (UploadTaskRequestValidationError) Field

Field function returns field value.

func (UploadTaskRequestValidationError) Key

Key function returns key value.

func (UploadTaskRequestValidationError) Reason

Reason function returns reason value.

Directories

Path Synopsis
Code generated by MockGen.
Code generated by MockGen.

Jump to

Keyboard shortcuts

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