Documentation ¶
Index ¶
- Variables
- func RegisterDaemonServer(s *grpc.Server, srv DaemonServer)
- type DaemonClient
- type DaemonServer
- type Daemon_DownloadClient
- type Daemon_DownloadServer
- type Daemon_SyncPieceTasksClient
- type Daemon_SyncPieceTasksServer
- type DeleteTaskRequest
- func (*DeleteTaskRequest) Descriptor() ([]byte, []int)deprecated
- func (x *DeleteTaskRequest) GetUrl() string
- func (x *DeleteTaskRequest) GetUrlMeta() *v1.UrlMeta
- 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 DownRequest
- func (*DownRequest) Descriptor() ([]byte, []int)deprecated
- func (x *DownRequest) GetCallsystem() string
- func (x *DownRequest) GetDisableBackSource() bool
- func (x *DownRequest) GetGid() int64
- func (x *DownRequest) GetKeepOriginalOffset() bool
- func (x *DownRequest) GetLimit() float64
- func (x *DownRequest) GetOutput() string
- func (x *DownRequest) GetPattern() string
- func (x *DownRequest) GetRecursive() bool
- func (x *DownRequest) GetTimeout() uint64
- func (x *DownRequest) GetUid() int64
- func (x *DownRequest) GetUrl() string
- func (x *DownRequest) GetUrlMeta() *v1.UrlMeta
- func (x *DownRequest) GetUuid() string
- func (*DownRequest) ProtoMessage()
- func (x *DownRequest) ProtoReflect() protoreflect.Message
- func (x *DownRequest) Reset()
- func (x *DownRequest) String() string
- func (m *DownRequest) Validate() error
- func (m *DownRequest) ValidateAll() error
- type DownRequestMultiError
- type DownRequestValidationError
- func (e DownRequestValidationError) Cause() error
- func (e DownRequestValidationError) Error() string
- func (e DownRequestValidationError) ErrorName() string
- func (e DownRequestValidationError) Field() string
- func (e DownRequestValidationError) Key() bool
- func (e DownRequestValidationError) Reason() string
- type DownResult
- func (*DownResult) Descriptor() ([]byte, []int)deprecated
- func (x *DownResult) GetCompletedLength() uint64
- func (x *DownResult) GetDone() bool
- func (x *DownResult) GetOutput() string
- func (x *DownResult) GetPeerId() string
- func (x *DownResult) GetTaskId() string
- func (*DownResult) ProtoMessage()
- func (x *DownResult) ProtoReflect() protoreflect.Message
- func (x *DownResult) Reset()
- func (x *DownResult) String() string
- func (m *DownResult) Validate() error
- func (m *DownResult) ValidateAll() error
- type DownResultMultiError
- type DownResultValidationError
- type ExportTaskRequest
- func (*ExportTaskRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ExportTaskRequest) GetCallsystem() string
- func (x *ExportTaskRequest) GetGid() int64
- func (x *ExportTaskRequest) GetLimit() float64
- func (x *ExportTaskRequest) GetLocalOnly() bool
- func (x *ExportTaskRequest) GetOutput() string
- func (x *ExportTaskRequest) GetTimeout() uint64
- func (x *ExportTaskRequest) GetUid() int64
- func (x *ExportTaskRequest) GetUrl() string
- func (x *ExportTaskRequest) GetUrlMeta() *v1.UrlMeta
- func (*ExportTaskRequest) ProtoMessage()
- func (x *ExportTaskRequest) ProtoReflect() protoreflect.Message
- func (x *ExportTaskRequest) Reset()
- func (x *ExportTaskRequest) String() string
- func (m *ExportTaskRequest) Validate() error
- func (m *ExportTaskRequest) ValidateAll() error
- type ExportTaskRequestMultiError
- type ExportTaskRequestValidationError
- func (e ExportTaskRequestValidationError) Cause() error
- func (e ExportTaskRequestValidationError) Error() string
- func (e ExportTaskRequestValidationError) ErrorName() string
- func (e ExportTaskRequestValidationError) Field() string
- func (e ExportTaskRequestValidationError) Key() bool
- func (e ExportTaskRequestValidationError) Reason() string
- type ImportTaskRequest
- func (*ImportTaskRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ImportTaskRequest) GetPath() string
- func (x *ImportTaskRequest) GetType() v1.TaskType
- func (x *ImportTaskRequest) GetUrl() string
- func (x *ImportTaskRequest) GetUrlMeta() *v1.UrlMeta
- func (*ImportTaskRequest) ProtoMessage()
- func (x *ImportTaskRequest) ProtoReflect() protoreflect.Message
- func (x *ImportTaskRequest) Reset()
- func (x *ImportTaskRequest) String() string
- func (m *ImportTaskRequest) Validate() error
- func (m *ImportTaskRequest) ValidateAll() error
- type ImportTaskRequestMultiError
- type ImportTaskRequestValidationError
- func (e ImportTaskRequestValidationError) Cause() error
- func (e ImportTaskRequestValidationError) Error() string
- func (e ImportTaskRequestValidationError) ErrorName() string
- func (e ImportTaskRequestValidationError) Field() string
- func (e ImportTaskRequestValidationError) Key() bool
- func (e ImportTaskRequestValidationError) Reason() string
- type StatTaskRequest
- func (*StatTaskRequest) Descriptor() ([]byte, []int)deprecated
- func (x *StatTaskRequest) GetLocalOnly() bool
- func (x *StatTaskRequest) GetUrl() string
- func (x *StatTaskRequest) GetUrlMeta() *v1.UrlMeta
- 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 UnimplementedDaemonServer
- func (*UnimplementedDaemonServer) CheckHealth(context.Context, *emptypb.Empty) (*emptypb.Empty, error)
- func (*UnimplementedDaemonServer) DeleteTask(context.Context, *DeleteTaskRequest) (*emptypb.Empty, error)
- func (*UnimplementedDaemonServer) Download(*DownRequest, Daemon_DownloadServer) error
- func (*UnimplementedDaemonServer) ExportTask(context.Context, *ExportTaskRequest) (*emptypb.Empty, error)
- func (*UnimplementedDaemonServer) GetPieceTasks(context.Context, *v1.PieceTaskRequest) (*v1.PiecePacket, error)
- func (*UnimplementedDaemonServer) ImportTask(context.Context, *ImportTaskRequest) (*emptypb.Empty, error)
- func (*UnimplementedDaemonServer) StatTask(context.Context, *StatTaskRequest) (*emptypb.Empty, error)
- func (*UnimplementedDaemonServer) SyncPieceTasks(Daemon_SyncPieceTasksServer) error
Constants ¶
This section is empty.
Variables ¶
var File_pkg_apis_dfdaemon_v1_dfdaemon_proto protoreflect.FileDescriptor
Functions ¶
func RegisterDaemonServer ¶
func RegisterDaemonServer(s *grpc.Server, srv DaemonServer)
Types ¶
type DaemonClient ¶
type DaemonClient interface { // Trigger client to download file Download(ctx context.Context, in *DownRequest, opts ...grpc.CallOption) (Daemon_DownloadClient, error) // Get piece tasks from other peers GetPieceTasks(ctx context.Context, in *v1.PieceTaskRequest, opts ...grpc.CallOption) (*v1.PiecePacket, error) // Check daemon health CheckHealth(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*emptypb.Empty, error) // Sync piece tasks with other peers SyncPieceTasks(ctx context.Context, opts ...grpc.CallOption) (Daemon_SyncPieceTasksClient, error) // Check if given task exists in P2P cache system StatTask(ctx context.Context, in *StatTaskRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) // Import the given file into P2P cache system ImportTask(ctx context.Context, in *ImportTaskRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) // Export or download file from P2P cache system ExportTask(ctx context.Context, in *ExportTaskRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) // Delete file from P2P cache system DeleteTask(ctx context.Context, in *DeleteTaskRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) }
DaemonClient is the client API for Daemon service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewDaemonClient ¶
func NewDaemonClient(cc grpc.ClientConnInterface) DaemonClient
type DaemonServer ¶
type DaemonServer interface { // Trigger client to download file Download(*DownRequest, Daemon_DownloadServer) error // Get piece tasks from other peers GetPieceTasks(context.Context, *v1.PieceTaskRequest) (*v1.PiecePacket, error) // Check daemon health CheckHealth(context.Context, *emptypb.Empty) (*emptypb.Empty, error) // Sync piece tasks with other peers SyncPieceTasks(Daemon_SyncPieceTasksServer) error // Check if given task exists in P2P cache system StatTask(context.Context, *StatTaskRequest) (*emptypb.Empty, error) // Import the given file into P2P cache system ImportTask(context.Context, *ImportTaskRequest) (*emptypb.Empty, error) // Export or download file from P2P cache system ExportTask(context.Context, *ExportTaskRequest) (*emptypb.Empty, error) // Delete file from P2P cache system DeleteTask(context.Context, *DeleteTaskRequest) (*emptypb.Empty, error) }
DaemonServer is the server API for Daemon service.
type Daemon_DownloadClient ¶
type Daemon_DownloadClient interface { Recv() (*DownResult, error) grpc.ClientStream }
type Daemon_DownloadServer ¶
type Daemon_DownloadServer interface { Send(*DownResult) error grpc.ServerStream }
type Daemon_SyncPieceTasksClient ¶
type Daemon_SyncPieceTasksClient interface { Send(*v1.PieceTaskRequest) error Recv() (*v1.PiecePacket, error) grpc.ClientStream }
type Daemon_SyncPieceTasksServer ¶
type Daemon_SyncPieceTasksServer interface { Send(*v1.PiecePacket) error Recv() (*v1.PieceTaskRequest, error) grpc.ServerStream }
type DeleteTaskRequest ¶
type DeleteTaskRequest struct { // Download url. Url string `protobuf:"bytes,1,opt,name=url,proto3" json:"url,omitempty"` // URL meta info. UrlMeta *v1.UrlMeta `protobuf:"bytes,2,opt,name=url_meta,json=urlMeta,proto3" json:"url_meta,omitempty"` // contains filtered or unexported fields }
func (*DeleteTaskRequest) Descriptor
deprecated
func (*DeleteTaskRequest) Descriptor() ([]byte, []int)
Deprecated: Use DeleteTaskRequest.ProtoReflect.Descriptor instead.
func (*DeleteTaskRequest) GetUrl ¶
func (x *DeleteTaskRequest) GetUrl() string
func (*DeleteTaskRequest) GetUrlMeta ¶
func (x *DeleteTaskRequest) GetUrlMeta() *v1.UrlMeta
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 DownRequest ¶
type DownRequest struct { // Identify one downloading, the framework will fill it automatically. // Deprecated Uuid string `protobuf:"bytes,1,opt,name=uuid,proto3" json:"uuid,omitempty"` // Download file from the url, not only for http. Url string `protobuf:"bytes,2,opt,name=url,proto3" json:"url,omitempty"` // Pieces will be written to output path directly, // at the same time, dfdaemon workspace also makes soft link to the output. Output string `protobuf:"bytes,3,opt,name=output,proto3" json:"output,omitempty"` // Timeout duration. Timeout uint64 `protobuf:"varint,4,opt,name=timeout,proto3" json:"timeout,omitempty"` // Rate limit in bytes per second. Limit float64 `protobuf:"fixed64,5,opt,name=limit,proto3" json:"limit,omitempty"` // Disable back-to-source. DisableBackSource bool `protobuf:"varint,6,opt,name=disable_back_source,json=disableBackSource,proto3" json:"disable_back_source,omitempty"` // URL meta info. UrlMeta *v1.UrlMeta `protobuf:"bytes,7,opt,name=url_meta,json=urlMeta,proto3" json:"url_meta,omitempty"` // Pattern has p2p/seed-peer/source, default is p2p. Pattern string `protobuf:"bytes,8,opt,name=pattern,proto3" json:"pattern,omitempty"` // Call system. Callsystem string `protobuf:"bytes,9,opt,name=callsystem,proto3" json:"callsystem,omitempty"` // User id. Uid int64 `protobuf:"varint,10,opt,name=uid,proto3" json:"uid,omitempty"` // Group id. Gid int64 `protobuf:"varint,11,opt,name=gid,proto3" json:"gid,omitempty"` // Keep original offset, used for ranged request, only available for hard link, otherwise will failed. KeepOriginalOffset bool `protobuf:"varint,12,opt,name=keep_original_offset,json=keepOriginalOffset,proto3" json:"keep_original_offset,omitempty"` // Recursive download, when enabled, daemon will call resource list api to list and then recursive download each object. Recursive bool `protobuf:"varint,13,opt,name=recursive,proto3" json:"recursive,omitempty"` // contains filtered or unexported fields }
func (*DownRequest) Descriptor
deprecated
func (*DownRequest) Descriptor() ([]byte, []int)
Deprecated: Use DownRequest.ProtoReflect.Descriptor instead.
func (*DownRequest) GetCallsystem ¶
func (x *DownRequest) GetCallsystem() string
func (*DownRequest) GetDisableBackSource ¶
func (x *DownRequest) GetDisableBackSource() bool
func (*DownRequest) GetGid ¶
func (x *DownRequest) GetGid() int64
func (*DownRequest) GetKeepOriginalOffset ¶
func (x *DownRequest) GetKeepOriginalOffset() bool
func (*DownRequest) GetLimit ¶
func (x *DownRequest) GetLimit() float64
func (*DownRequest) GetOutput ¶
func (x *DownRequest) GetOutput() string
func (*DownRequest) GetPattern ¶
func (x *DownRequest) GetPattern() string
func (*DownRequest) GetRecursive ¶ added in v1.0.1
func (x *DownRequest) GetRecursive() bool
func (*DownRequest) GetTimeout ¶
func (x *DownRequest) GetTimeout() uint64
func (*DownRequest) GetUid ¶
func (x *DownRequest) GetUid() int64
func (*DownRequest) GetUrl ¶
func (x *DownRequest) GetUrl() string
func (*DownRequest) GetUrlMeta ¶
func (x *DownRequest) GetUrlMeta() *v1.UrlMeta
func (*DownRequest) GetUuid ¶
func (x *DownRequest) GetUuid() string
func (*DownRequest) ProtoMessage ¶
func (*DownRequest) ProtoMessage()
func (*DownRequest) ProtoReflect ¶
func (x *DownRequest) ProtoReflect() protoreflect.Message
func (*DownRequest) Reset ¶
func (x *DownRequest) Reset()
func (*DownRequest) String ¶
func (x *DownRequest) String() string
func (*DownRequest) Validate ¶
func (m *DownRequest) Validate() error
Validate checks the field values on DownRequest 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 (*DownRequest) ValidateAll ¶
func (m *DownRequest) ValidateAll() error
ValidateAll checks the field values on DownRequest 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 DownRequestMultiError, or nil if none found.
type DownRequestMultiError ¶
type DownRequestMultiError []error
DownRequestMultiError is an error wrapping multiple validation errors returned by DownRequest.ValidateAll() if the designated constraints aren't met.
func (DownRequestMultiError) AllErrors ¶
func (m DownRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (DownRequestMultiError) Error ¶
func (m DownRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type DownRequestValidationError ¶
type DownRequestValidationError struct {
// contains filtered or unexported fields
}
DownRequestValidationError is the validation error returned by DownRequest.Validate if the designated constraints aren't met.
func (DownRequestValidationError) Cause ¶
func (e DownRequestValidationError) Cause() error
Cause function returns cause value.
func (DownRequestValidationError) Error ¶
func (e DownRequestValidationError) Error() string
Error satisfies the builtin error interface
func (DownRequestValidationError) ErrorName ¶
func (e DownRequestValidationError) ErrorName() string
ErrorName returns error name.
func (DownRequestValidationError) Field ¶
func (e DownRequestValidationError) Field() string
Field function returns field value.
func (DownRequestValidationError) Key ¶
func (e DownRequestValidationError) Key() bool
Key function returns key value.
func (DownRequestValidationError) Reason ¶
func (e DownRequestValidationError) Reason() string
Reason function returns reason value.
type DownResult ¶
type DownResult struct { // 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"` // Task has completed length. CompletedLength uint64 `protobuf:"varint,4,opt,name=completed_length,json=completedLength,proto3" json:"completed_length,omitempty"` // Task has been completed. Done bool `protobuf:"varint,5,opt,name=done,proto3" json:"done,omitempty"` // Task output. Used in recursive download. Output string `protobuf:"bytes,6,opt,name=output,proto3" json:"output,omitempty"` // contains filtered or unexported fields }
func (*DownResult) Descriptor
deprecated
func (*DownResult) Descriptor() ([]byte, []int)
Deprecated: Use DownResult.ProtoReflect.Descriptor instead.
func (*DownResult) GetCompletedLength ¶
func (x *DownResult) GetCompletedLength() uint64
func (*DownResult) GetDone ¶
func (x *DownResult) GetDone() bool
func (*DownResult) GetOutput ¶ added in v1.0.1
func (x *DownResult) GetOutput() string
func (*DownResult) GetPeerId ¶
func (x *DownResult) GetPeerId() string
func (*DownResult) GetTaskId ¶
func (x *DownResult) GetTaskId() string
func (*DownResult) ProtoMessage ¶
func (*DownResult) ProtoMessage()
func (*DownResult) ProtoReflect ¶
func (x *DownResult) ProtoReflect() protoreflect.Message
func (*DownResult) Reset ¶
func (x *DownResult) Reset()
func (*DownResult) String ¶
func (x *DownResult) String() string
func (*DownResult) Validate ¶
func (m *DownResult) Validate() error
Validate checks the field values on DownResult 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 (*DownResult) ValidateAll ¶
func (m *DownResult) ValidateAll() error
ValidateAll checks the field values on DownResult 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 DownResultMultiError, or nil if none found.
type DownResultMultiError ¶
type DownResultMultiError []error
DownResultMultiError is an error wrapping multiple validation errors returned by DownResult.ValidateAll() if the designated constraints aren't met.
func (DownResultMultiError) AllErrors ¶
func (m DownResultMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (DownResultMultiError) Error ¶
func (m DownResultMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type DownResultValidationError ¶
type DownResultValidationError struct {
// contains filtered or unexported fields
}
DownResultValidationError is the validation error returned by DownResult.Validate if the designated constraints aren't met.
func (DownResultValidationError) Cause ¶
func (e DownResultValidationError) Cause() error
Cause function returns cause value.
func (DownResultValidationError) Error ¶
func (e DownResultValidationError) Error() string
Error satisfies the builtin error interface
func (DownResultValidationError) ErrorName ¶
func (e DownResultValidationError) ErrorName() string
ErrorName returns error name.
func (DownResultValidationError) Field ¶
func (e DownResultValidationError) Field() string
Field function returns field value.
func (DownResultValidationError) Key ¶
func (e DownResultValidationError) Key() bool
Key function returns key value.
func (DownResultValidationError) Reason ¶
func (e DownResultValidationError) Reason() string
Reason function returns reason value.
type ExportTaskRequest ¶
type ExportTaskRequest struct { // Download url. Url string `protobuf:"bytes,1,opt,name=url,proto3" json:"url,omitempty"` // Output path of downloaded file. Output string `protobuf:"bytes,2,opt,name=output,proto3" json:"output,omitempty"` // Timeout duration. Timeout uint64 `protobuf:"varint,3,opt,name=timeout,proto3" json:"timeout,omitempty"` // Rate limit in bytes per second. Limit float64 `protobuf:"fixed64,4,opt,name=limit,proto3" json:"limit,omitempty"` // URL meta info. UrlMeta *v1.UrlMeta `protobuf:"bytes,5,opt,name=url_meta,json=urlMeta,proto3" json:"url_meta,omitempty"` // Call system. Callsystem string `protobuf:"bytes,6,opt,name=callsystem,proto3" json:"callsystem,omitempty"` // User id. Uid int64 `protobuf:"varint,7,opt,name=uid,proto3" json:"uid,omitempty"` // Group id. Gid int64 `protobuf:"varint,8,opt,name=gid,proto3" json:"gid,omitempty"` // Only export from local storage. LocalOnly bool `protobuf:"varint,9,opt,name=local_only,json=localOnly,proto3" json:"local_only,omitempty"` // contains filtered or unexported fields }
func (*ExportTaskRequest) Descriptor
deprecated
func (*ExportTaskRequest) Descriptor() ([]byte, []int)
Deprecated: Use ExportTaskRequest.ProtoReflect.Descriptor instead.
func (*ExportTaskRequest) GetCallsystem ¶
func (x *ExportTaskRequest) GetCallsystem() string
func (*ExportTaskRequest) GetGid ¶
func (x *ExportTaskRequest) GetGid() int64
func (*ExportTaskRequest) GetLimit ¶
func (x *ExportTaskRequest) GetLimit() float64
func (*ExportTaskRequest) GetLocalOnly ¶
func (x *ExportTaskRequest) GetLocalOnly() bool
func (*ExportTaskRequest) GetOutput ¶
func (x *ExportTaskRequest) GetOutput() string
func (*ExportTaskRequest) GetTimeout ¶
func (x *ExportTaskRequest) GetTimeout() uint64
func (*ExportTaskRequest) GetUid ¶
func (x *ExportTaskRequest) GetUid() int64
func (*ExportTaskRequest) GetUrl ¶
func (x *ExportTaskRequest) GetUrl() string
func (*ExportTaskRequest) GetUrlMeta ¶
func (x *ExportTaskRequest) GetUrlMeta() *v1.UrlMeta
func (*ExportTaskRequest) ProtoMessage ¶
func (*ExportTaskRequest) ProtoMessage()
func (*ExportTaskRequest) ProtoReflect ¶
func (x *ExportTaskRequest) ProtoReflect() protoreflect.Message
func (*ExportTaskRequest) Reset ¶
func (x *ExportTaskRequest) Reset()
func (*ExportTaskRequest) String ¶
func (x *ExportTaskRequest) String() string
func (*ExportTaskRequest) Validate ¶
func (m *ExportTaskRequest) Validate() error
Validate checks the field values on ExportTaskRequest 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 (*ExportTaskRequest) ValidateAll ¶
func (m *ExportTaskRequest) ValidateAll() error
ValidateAll checks the field values on ExportTaskRequest 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 ExportTaskRequestMultiError, or nil if none found.
type ExportTaskRequestMultiError ¶
type ExportTaskRequestMultiError []error
ExportTaskRequestMultiError is an error wrapping multiple validation errors returned by ExportTaskRequest.ValidateAll() if the designated constraints aren't met.
func (ExportTaskRequestMultiError) AllErrors ¶
func (m ExportTaskRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (ExportTaskRequestMultiError) Error ¶
func (m ExportTaskRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type ExportTaskRequestValidationError ¶
type ExportTaskRequestValidationError struct {
// contains filtered or unexported fields
}
ExportTaskRequestValidationError is the validation error returned by ExportTaskRequest.Validate if the designated constraints aren't met.
func (ExportTaskRequestValidationError) Cause ¶
func (e ExportTaskRequestValidationError) Cause() error
Cause function returns cause value.
func (ExportTaskRequestValidationError) Error ¶
func (e ExportTaskRequestValidationError) Error() string
Error satisfies the builtin error interface
func (ExportTaskRequestValidationError) ErrorName ¶
func (e ExportTaskRequestValidationError) ErrorName() string
ErrorName returns error name.
func (ExportTaskRequestValidationError) Field ¶
func (e ExportTaskRequestValidationError) Field() string
Field function returns field value.
func (ExportTaskRequestValidationError) Key ¶
func (e ExportTaskRequestValidationError) Key() bool
Key function returns key value.
func (ExportTaskRequestValidationError) Reason ¶
func (e ExportTaskRequestValidationError) Reason() string
Reason function returns reason value.
type ImportTaskRequest ¶
type ImportTaskRequest struct { // Download url. Url string `protobuf:"bytes,1,opt,name=url,proto3" json:"url,omitempty"` // URL meta info. UrlMeta *v1.UrlMeta `protobuf:"bytes,2,opt,name=url_meta,json=urlMeta,proto3" json:"url_meta,omitempty"` // File to be imported. Path string `protobuf:"bytes,3,opt,name=path,proto3" json:"path,omitempty"` // Task type. Type v1.TaskType `protobuf:"varint,4,opt,name=type,proto3,enum=common.TaskType" json:"type,omitempty"` // contains filtered or unexported fields }
func (*ImportTaskRequest) Descriptor
deprecated
func (*ImportTaskRequest) Descriptor() ([]byte, []int)
Deprecated: Use ImportTaskRequest.ProtoReflect.Descriptor instead.
func (*ImportTaskRequest) GetPath ¶
func (x *ImportTaskRequest) GetPath() string
func (*ImportTaskRequest) GetType ¶
func (x *ImportTaskRequest) GetType() v1.TaskType
func (*ImportTaskRequest) GetUrl ¶
func (x *ImportTaskRequest) GetUrl() string
func (*ImportTaskRequest) GetUrlMeta ¶
func (x *ImportTaskRequest) GetUrlMeta() *v1.UrlMeta
func (*ImportTaskRequest) ProtoMessage ¶
func (*ImportTaskRequest) ProtoMessage()
func (*ImportTaskRequest) ProtoReflect ¶
func (x *ImportTaskRequest) ProtoReflect() protoreflect.Message
func (*ImportTaskRequest) Reset ¶
func (x *ImportTaskRequest) Reset()
func (*ImportTaskRequest) String ¶
func (x *ImportTaskRequest) String() string
func (*ImportTaskRequest) Validate ¶
func (m *ImportTaskRequest) Validate() error
Validate checks the field values on ImportTaskRequest 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 (*ImportTaskRequest) ValidateAll ¶
func (m *ImportTaskRequest) ValidateAll() error
ValidateAll checks the field values on ImportTaskRequest 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 ImportTaskRequestMultiError, or nil if none found.
type ImportTaskRequestMultiError ¶
type ImportTaskRequestMultiError []error
ImportTaskRequestMultiError is an error wrapping multiple validation errors returned by ImportTaskRequest.ValidateAll() if the designated constraints aren't met.
func (ImportTaskRequestMultiError) AllErrors ¶
func (m ImportTaskRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (ImportTaskRequestMultiError) Error ¶
func (m ImportTaskRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type ImportTaskRequestValidationError ¶
type ImportTaskRequestValidationError struct {
// contains filtered or unexported fields
}
ImportTaskRequestValidationError is the validation error returned by ImportTaskRequest.Validate if the designated constraints aren't met.
func (ImportTaskRequestValidationError) Cause ¶
func (e ImportTaskRequestValidationError) Cause() error
Cause function returns cause value.
func (ImportTaskRequestValidationError) Error ¶
func (e ImportTaskRequestValidationError) Error() string
Error satisfies the builtin error interface
func (ImportTaskRequestValidationError) ErrorName ¶
func (e ImportTaskRequestValidationError) ErrorName() string
ErrorName returns error name.
func (ImportTaskRequestValidationError) Field ¶
func (e ImportTaskRequestValidationError) Field() string
Field function returns field value.
func (ImportTaskRequestValidationError) Key ¶
func (e ImportTaskRequestValidationError) Key() bool
Key function returns key value.
func (ImportTaskRequestValidationError) Reason ¶
func (e ImportTaskRequestValidationError) Reason() string
Reason function returns reason value.
type StatTaskRequest ¶
type StatTaskRequest struct { // Download url. Url string `protobuf:"bytes,1,opt,name=url,proto3" json:"url,omitempty"` // URL meta info. UrlMeta *v1.UrlMeta `protobuf:"bytes,2,opt,name=url_meta,json=urlMeta,proto3" json:"url_meta,omitempty"` // Check local cache only. LocalOnly bool `protobuf:"varint,3,opt,name=local_only,json=localOnly,proto3" json:"local_only,omitempty"` // contains filtered or unexported fields }
func (*StatTaskRequest) Descriptor
deprecated
func (*StatTaskRequest) Descriptor() ([]byte, []int)
Deprecated: Use StatTaskRequest.ProtoReflect.Descriptor instead.
func (*StatTaskRequest) GetLocalOnly ¶
func (x *StatTaskRequest) GetLocalOnly() bool
func (*StatTaskRequest) GetUrl ¶
func (x *StatTaskRequest) GetUrl() string
func (*StatTaskRequest) GetUrlMeta ¶
func (x *StatTaskRequest) GetUrlMeta() *v1.UrlMeta
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 UnimplementedDaemonServer ¶
type UnimplementedDaemonServer struct { }
UnimplementedDaemonServer can be embedded to have forward compatible implementations.
func (*UnimplementedDaemonServer) CheckHealth ¶
func (*UnimplementedDaemonServer) DeleteTask ¶
func (*UnimplementedDaemonServer) DeleteTask(context.Context, *DeleteTaskRequest) (*emptypb.Empty, error)
func (*UnimplementedDaemonServer) Download ¶
func (*UnimplementedDaemonServer) Download(*DownRequest, Daemon_DownloadServer) error
func (*UnimplementedDaemonServer) ExportTask ¶
func (*UnimplementedDaemonServer) ExportTask(context.Context, *ExportTaskRequest) (*emptypb.Empty, error)
func (*UnimplementedDaemonServer) GetPieceTasks ¶
func (*UnimplementedDaemonServer) GetPieceTasks(context.Context, *v1.PieceTaskRequest) (*v1.PiecePacket, error)
func (*UnimplementedDaemonServer) ImportTask ¶
func (*UnimplementedDaemonServer) ImportTask(context.Context, *ImportTaskRequest) (*emptypb.Empty, error)
func (*UnimplementedDaemonServer) StatTask ¶
func (*UnimplementedDaemonServer) StatTask(context.Context, *StatTaskRequest) (*emptypb.Empty, error)
func (*UnimplementedDaemonServer) SyncPieceTasks ¶
func (*UnimplementedDaemonServer) SyncPieceTasks(Daemon_SyncPieceTasksServer) error