Documentation ¶
Index ¶
- Constants
- type FileService
- func (fs *FileService) DeleteFile(connection string, path string) error
- func (fs *FileService) DeleteFile_Meta() tsgenmeta.MethodMeta
- func (fs *FileService) GetFullConfig() wconfig.FullConfigType
- func (fs *FileService) GetWaveFile(id string, path string) (any, error)
- func (fs *FileService) ReadFile(connection string, path string) (*FullFile, error)
- func (fs *FileService) ReadFile_Meta() tsgenmeta.MethodMeta
- func (fs *FileService) SaveFile(connection string, path string, data64 string) error
- func (fs *FileService) SaveFile_Meta() tsgenmeta.MethodMeta
- func (fs *FileService) StatFile(connection string, path string) (*wshrpc.FileInfo, error)
- func (fs *FileService) StatFile_Meta() tsgenmeta.MethodMeta
- type FullFile
Constants ¶
View Source
const DefaultTimeout = 2 * time.Second
View Source
const MaxFileSize = 10 * 1024 * 1024 // 10M
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FileService ¶
type FileService struct{}
func (*FileService) DeleteFile ¶
func (fs *FileService) DeleteFile(connection string, path string) error
func (*FileService) DeleteFile_Meta ¶
func (fs *FileService) DeleteFile_Meta() tsgenmeta.MethodMeta
func (*FileService) GetFullConfig ¶
func (fs *FileService) GetFullConfig() wconfig.FullConfigType
func (*FileService) GetWaveFile ¶
func (fs *FileService) GetWaveFile(id string, path string) (any, error)
func (*FileService) ReadFile ¶
func (fs *FileService) ReadFile(connection string, path string) (*FullFile, error)
func (*FileService) ReadFile_Meta ¶
func (fs *FileService) ReadFile_Meta() tsgenmeta.MethodMeta
func (*FileService) SaveFile ¶
func (fs *FileService) SaveFile(connection string, path string, data64 string) error
func (*FileService) SaveFile_Meta ¶
func (fs *FileService) SaveFile_Meta() tsgenmeta.MethodMeta
func (*FileService) StatFile_Meta ¶
func (fs *FileService) StatFile_Meta() tsgenmeta.MethodMeta
Click to show internal directories.
Click to hide internal directories.