Documentation ¶
Index ¶
- type Dao
- func (d *Dao) FPutDocumentFile(ctx context.Context, path string, r string) (n minio.UploadInfo, err error)
- func (d *Dao) GetCacheDfsFileInfo(ctx context.Context, id int64) (*model.DfsFileInfo, error)
- func (d *Dao) GetCacheFile(ctx context.Context, bucket string, id int64, offset int64, limit int32) (bytes []byte, err error)
- func (d *Dao) GetFile(ctx context.Context, bucket, path string, offset int64, limit int32) (bytes []byte, err error)
- func (d *Dao) GetFileInfo(ctx context.Context, ownerId, fileId int64) (fileInfo *model.DfsFileInfo, err error)
- func (d *Dao) GetFileObject(ctx context.Context, bucket, path string) (*minio.Object, error)
- func (d *Dao) NewSSDBReader(fileInfo *model.DfsFileInfo) *SSDBReader
- func (d *Dao) OpenFile(ctx context.Context, ownerId, fileId int64, parts int32) (*SSDBReader, error)
- func (d *Dao) PutDocumentFile(ctx context.Context, path string, r io.Reader) (n minio.UploadInfo, err error)
- func (d *Dao) PutEncryptedFile(ctx context.Context, path string, r io.Reader) (n minio.UploadInfo, err error)
- func (d *Dao) PutPhotoFile(ctx context.Context, path string, buf []byte) (n minio.UploadInfo, err error)
- func (d *Dao) PutPhotoFileV2(ctx context.Context, path string, r io.Reader) (n minio.UploadInfo, err error)
- func (d *Dao) PutVideoFile(ctx context.Context, path string, buf []byte) (n minio.UploadInfo, err error)
- func (d *Dao) ReadFile(ctx context.Context, ownerId, fileId int64, parts int32) (partLength int32, bytes []byte, err error)
- func (d *Dao) ReadFileCB(ctx context.Context, ownerId, fileId int64, parts int32, ...) (err error)
- func (d *Dao) ReadOffsetLimit(ctx context.Context, fileInfo *model.DfsFileInfo, offset, limit int32) (bytes []byte, err error)
- func (d *Dao) SetCacheFileInfo(ctx context.Context, id int64, dfsFileInfo *model.DfsFileInfo) (err error)
- func (d *Dao) SetFileInfo(ctx context.Context, fileInfo *model.DfsFileInfo) (err error)
- func (d *Dao) WriteFilePartData(ctx context.Context, ownerId, fileId int64, filePart int32, bytes []byte) (err error)
- type SSDBReader
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Dao ¶
type Dao struct { idgen_client.IDGenClient2 // contains filtered or unexported fields }
func NewDFSHelper ¶ added in v0.86.2
func NewDFSHelper(minio *minio_util.MinioConfig, idgen zrpc.RpcClientConf, ssdb kv.KvConf) *Dao
func (*Dao) FPutDocumentFile ¶
func (*Dao) GetCacheDfsFileInfo ¶
func (*Dao) GetCacheFile ¶
func (*Dao) GetFileInfo ¶
func (*Dao) GetFileObject ¶ added in v0.90.1
func (*Dao) NewSSDBReader ¶
func (d *Dao) NewSSDBReader(fileInfo *model.DfsFileInfo) *SSDBReader
func (*Dao) PutDocumentFile ¶
func (*Dao) PutEncryptedFile ¶
func (*Dao) PutPhotoFile ¶
func (*Dao) PutPhotoFileV2 ¶ added in v0.86.2
func (*Dao) PutVideoFile ¶
func (*Dao) ReadFileCB ¶
func (*Dao) ReadOffsetLimit ¶
func (*Dao) SetCacheFileInfo ¶
func (*Dao) SetFileInfo ¶
type SSDBReader ¶
type SSDBReader struct { *model.DfsFileInfo // contains filtered or unexported fields }
Source Files ¶
Click to show internal directories.
Click to hide internal directories.