service

package
v1.0.17 Latest Latest
Warning

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

Go to latest
Published: Jun 27, 2024 License: MIT Imports: 29 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

func New

func New(c *conf.Config, hs *http.Server, gs *grpc.Server)

func NewExportStore added in v1.0.12

func NewExportStore(conf *conf.Config) (store.Store, error)

func NewStore added in v1.0.12

func NewStore(conf *conf.Config) (store.Store, error)

Types

type DirectoryService added in v1.0.11

type DirectoryService struct {
	pb.UnimplementedDirectoryServer
	// contains filtered or unexported fields
}

func NewDirectoryService added in v1.0.11

func NewDirectoryService(conf *conf.Config) *DirectoryService

func (*DirectoryService) CreateDirectory added in v1.0.11

CreateDirectory 创建文件目录信息

func (*DirectoryService) DeleteDirectory added in v1.0.11

DeleteDirectory 删除文件目录信息

func (*DirectoryService) GetDirectory added in v1.0.11

GetDirectory 获取指定的文件目录信息

func (*DirectoryService) ListDirectory added in v1.0.11

ListDirectory 获取文件目录信息列表

func (*DirectoryService) UpdateDirectory added in v1.0.11

UpdateDirectory 更新文件目录信息

type ExportService added in v1.0.8

type ExportService struct {
	pb.UnimplementedExportServer
	// contains filtered or unexported fields
}

func NewExportService added in v1.0.11

func NewExportService(conf *conf.Config) *ExportService

func (*ExportService) DeleteExport added in v1.0.8

DeleteExport 删除导出信息

func (*ExportService) Download added in v1.0.12

func (s *ExportService) Download() thttp.HandlerFunc

func (*ExportService) ExportExcel added in v1.0.12

ExportExcel 创建导出excel文件

func (*ExportService) ExportFile added in v1.0.12

ExportFile 创建导出文件

func (*ExportService) GetExport added in v1.0.12

GetExport 获取指定的导出信息

func (*ExportService) ListExport added in v1.0.11

ListExport 获取导出信息列表

func (*ExportService) LocalPath added in v1.0.12

func (s *ExportService) LocalPath(next http.Handler, src string) http.Handler

type FileService

type FileService struct {
	pb.UnimplementedFileServer
	// contains filtered or unexported fields
}

func NewFileService added in v1.0.11

func NewFileService(conf *conf.Config) *FileService

func (*FileService) DeleteFile added in v1.0.5

DeleteFile 删除文件信息

func (*FileService) GetFile

func (s *FileService) GetFile(c context.Context, req *pb.GetFileRequest) (*pb.GetFileReply, error)

GetFile 获取指定的文件信息

func (*FileService) ListFile added in v1.0.11

ListFile 获取文件信息列表

func (*FileService) LocalPath added in v1.0.11

func (s *FileService) LocalPath(next http.Handler, src string) http.Handler

func (*FileService) PrepareUploadFile

PrepareUploadFile 预上传文件信息

func (*FileService) SrcBlob added in v1.0.11

func (s *FileService) SrcBlob() thttp.HandlerFunc

func (*FileService) UpdateFile

UpdateFile 更新文件信息

func (*FileService) Upload added in v1.0.11

func (s *FileService) Upload() http.HandlerFunc

func (*FileService) UploadFile

UploadFile 上传文件信息

type ResponseWriterWrapper added in v1.0.11

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

func NewWriter added in v1.0.11

func NewWriter() *ResponseWriterWrapper

func (*ResponseWriterWrapper) Header added in v1.0.11

func (w *ResponseWriterWrapper) Header() http.Header

func (*ResponseWriterWrapper) Write added in v1.0.11

func (w *ResponseWriterWrapper) Write(b []byte) (int, error)

func (*ResponseWriterWrapper) WriteHeader added in v1.0.11

func (w *ResponseWriterWrapper) WriteHeader(statusCode int)

func (*ResponseWriterWrapper) WriteString added in v1.0.11

func (w *ResponseWriterWrapper) WriteString(s string) (int, error)

Jump to

Keyboard shortcuts

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