logic

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Dec 19, 2023 License: MIT Imports: 24 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Directory

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

func NewDirectory

func NewDirectory(conf *config.Config) *Directory

func (*Directory) Add

func (*Directory) Delete

func (*Directory) Get

func (*Directory) Update

type File

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

func NewFile

func NewFile(conf *config.Config) *File

func (*File) DeleteFile

func (f *File) DeleteFile(ctx kratosx.Context, in *v1.DeleteFileRequest) (*empty.Empty, error)

DeleteFile 删除文件

func (*File) GetFile

GetFile 上传文件

func (*File) GetFileBySha added in v1.0.1

func (f *File) GetFileBySha(ctx kratosx.Context, in *v1.GetFileByShaRequest) (*v1.File, error)

GetFileBySha 查询文件

func (*File) NewStore

func (f *File) NewStore(ctx kratosx.Context) (store.Store, error)

NewStore 新建存储引擎

func (*File) PageFile

func (f *File) PageFile(ctx kratosx.Context, in *v1.PageFileRequest) (*v1.PageFileReply, error)

PageFile 获取分页文件

func (*File) PrepareUploadFile

func (f *File) PrepareUploadFile(ctx kratosx.Context, in *v1.PrepareUploadFileRequest) (*v1.PrepareUploadFileReply, error)

PrepareUploadFile 预上传文件

func (*File) UpdateFile

func (f *File) UpdateFile(ctx kratosx.Context, in *v1.UpdateFileRequest) (*empty.Empty, error)

UpdateFile 修改文件

func (*File) UploadFile

func (f *File) UploadFile(ctx kratosx.Context, in *v1.UploadFileRequest) (*v1.UploadFileReply, error)

UploadFile 上传文件

Jump to

Keyboard shortcuts

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