Documentation ¶
Index ¶
- type Dao
- func (d *Dao) FPutDocumentFile(ctx context.Context, path string, r string) (n int64, 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 int32, limit int32) (bytes []byte, err error)
- func (d *Dao) GetFile(ctx context.Context, bucket, path string, offset, limit int32) (bytes []byte, err error)
- func (d *Dao) GetFileInfo(ctx context.Context, ownerId, fileId int64) (fileInfo *model.DfsFileInfo, err 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 int64, err error)
- func (d *Dao) PutEncryptedFile(ctx context.Context, path string, r io.Reader) (n int64, err error)
- func (d *Dao) PutPhotoFile(ctx context.Context, path string, buf []byte) (n int64, err error)
- func (d *Dao) PutVideoFile(ctx context.Context, path string, buf []byte) (n int64, 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 (*Dao) FPutDocumentFile ¶
func (*Dao) GetCacheDfsFileInfo ¶
func (*Dao) GetCacheFile ¶
func (*Dao) GetFileInfo ¶
func (*Dao) NewSSDBReader ¶
func (d *Dao) NewSSDBReader(fileInfo *model.DfsFileInfo) *SSDBReader
func (*Dao) PutDocumentFile ¶
func (*Dao) PutEncryptedFile ¶
func (*Dao) PutPhotoFile ¶
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.