Documentation ¶
Index ¶
- func New(c *conf.Config, hs *http.Server, gs *grpc.Server)
- func NewExportStore(conf *conf.Config) (store.Store, error)
- func NewStore(conf *conf.Config) (store.Store, error)
- type DirectoryService
- func (s *DirectoryService) CreateDirectory(c context.Context, req *pb.CreateDirectoryRequest) (*pb.CreateDirectoryReply, error)
- func (s *DirectoryService) DeleteDirectory(c context.Context, req *pb.DeleteDirectoryRequest) (*pb.DeleteDirectoryReply, error)
- func (s *DirectoryService) GetDirectory(c context.Context, req *pb.GetDirectoryRequest) (*pb.GetDirectoryReply, error)
- func (s *DirectoryService) ListDirectory(c context.Context, req *pb.ListDirectoryRequest) (*pb.ListDirectoryReply, error)
- func (s *DirectoryService) UpdateDirectory(c context.Context, req *pb.UpdateDirectoryRequest) (*pb.UpdateDirectoryReply, error)
- type ExportService
- func (s *ExportService) DeleteExport(c context.Context, req *pb.DeleteExportRequest) (*pb.DeleteExportReply, error)
- func (s *ExportService) Download() thttp.HandlerFunc
- func (s *ExportService) ExportExcel(c context.Context, req *pb.ExportExcelRequest) (*pb.ExportExcelReply, error)
- func (s *ExportService) ExportFile(c context.Context, req *pb.ExportFileRequest) (*pb.ExportFileReply, error)
- func (s *ExportService) GetExport(c context.Context, req *pb.GetExportRequest) (*pb.GetExportReply, error)
- func (s *ExportService) ListExport(c context.Context, req *pb.ListExportRequest) (*pb.ListExportReply, error)
- func (s *ExportService) LocalPath(next http.Handler, src string) http.Handler
- type FileService
- func (s *FileService) DeleteFile(c context.Context, req *pb.DeleteFileRequest) (*pb.DeleteFileReply, error)
- func (s *FileService) GetFile(c context.Context, req *pb.GetFileRequest) (*pb.GetFileReply, error)
- func (s *FileService) ListFile(c context.Context, req *pb.ListFileRequest) (*pb.ListFileReply, error)
- func (s *FileService) LocalPath(next http.Handler, src string) http.Handler
- func (s *FileService) PrepareUploadFile(c context.Context, req *pb.PrepareUploadFileRequest) (*pb.PrepareUploadFileReply, error)
- func (s *FileService) SrcBlob() thttp.HandlerFunc
- func (s *FileService) UpdateFile(c context.Context, req *pb.UpdateFileRequest) (*pb.UpdateFileReply, error)
- func (s *FileService) Upload() http.HandlerFunc
- func (s *FileService) UploadFile(c context.Context, req *pb.UploadFileRequest) (*pb.UploadFileReply, error)
- type ResponseWriterWrapper
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
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
func (s *DirectoryService) CreateDirectory(c context.Context, req *pb.CreateDirectoryRequest) (*pb.CreateDirectoryReply, error)
CreateDirectory 创建文件目录信息
func (*DirectoryService) DeleteDirectory ¶ added in v1.0.11
func (s *DirectoryService) DeleteDirectory(c context.Context, req *pb.DeleteDirectoryRequest) (*pb.DeleteDirectoryReply, error)
DeleteDirectory 删除文件目录信息
func (*DirectoryService) GetDirectory ¶ added in v1.0.11
func (s *DirectoryService) GetDirectory(c context.Context, req *pb.GetDirectoryRequest) (*pb.GetDirectoryReply, error)
GetDirectory 获取指定的文件目录信息
func (*DirectoryService) ListDirectory ¶ added in v1.0.11
func (s *DirectoryService) ListDirectory(c context.Context, req *pb.ListDirectoryRequest) (*pb.ListDirectoryReply, error)
ListDirectory 获取文件目录信息列表
func (*DirectoryService) UpdateDirectory ¶ added in v1.0.11
func (s *DirectoryService) UpdateDirectory(c context.Context, req *pb.UpdateDirectoryRequest) (*pb.UpdateDirectoryReply, error)
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
func (s *ExportService) DeleteExport(c context.Context, req *pb.DeleteExportRequest) (*pb.DeleteExportReply, error)
DeleteExport 删除导出信息
func (*ExportService) Download ¶ added in v1.0.12
func (s *ExportService) Download() thttp.HandlerFunc
func (*ExportService) ExportExcel ¶ added in v1.0.12
func (s *ExportService) ExportExcel(c context.Context, req *pb.ExportExcelRequest) (*pb.ExportExcelReply, error)
ExportExcel 创建导出excel文件
func (*ExportService) ExportFile ¶ added in v1.0.12
func (s *ExportService) ExportFile(c context.Context, req *pb.ExportFileRequest) (*pb.ExportFileReply, error)
ExportFile 创建导出文件
func (*ExportService) GetExport ¶ added in v1.0.12
func (s *ExportService) GetExport(c context.Context, req *pb.GetExportRequest) (*pb.GetExportReply, error)
GetExport 获取指定的导出信息
func (*ExportService) ListExport ¶ added in v1.0.11
func (s *ExportService) ListExport(c context.Context, req *pb.ListExportRequest) (*pb.ListExportReply, error)
ListExport 获取导出信息列表
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
func (s *FileService) DeleteFile(c context.Context, req *pb.DeleteFileRequest) (*pb.DeleteFileReply, error)
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
func (s *FileService) ListFile(c context.Context, req *pb.ListFileRequest) (*pb.ListFileReply, error)
ListFile 获取文件信息列表
func (*FileService) PrepareUploadFile ¶
func (s *FileService) PrepareUploadFile(c context.Context, req *pb.PrepareUploadFileRequest) (*pb.PrepareUploadFileReply, error)
PrepareUploadFile 预上传文件信息
func (*FileService) SrcBlob ¶ added in v1.0.11
func (s *FileService) SrcBlob() thttp.HandlerFunc
func (*FileService) UpdateFile ¶
func (s *FileService) UpdateFile(c context.Context, req *pb.UpdateFileRequest) (*pb.UpdateFileReply, error)
UpdateFile 更新文件信息
func (*FileService) Upload ¶ added in v1.0.11
func (s *FileService) Upload() http.HandlerFunc
func (*FileService) UploadFile ¶
func (s *FileService) UploadFile(c context.Context, req *pb.UploadFileRequest) (*pb.UploadFileReply, error)
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)
Click to show internal directories.
Click to hide internal directories.