fileservice

package
v0.10.0-beta.7 Latest Latest
Warning

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

Go to latest
Published: Dec 12, 2024 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

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) Mkdir added in v0.10.0

func (fs *FileService) Mkdir(connection string, path string) 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) Rename added in v0.10.0

func (fs *FileService) Rename(connection string, path string, newPath string) error

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

func (fs *FileService) StatFile(connection string, path string) (*wshrpc.FileInfo, error)

func (*FileService) StatFile_Meta

func (fs *FileService) StatFile_Meta() tsgenmeta.MethodMeta

func (*FileService) TouchFile added in v0.10.0

func (fs *FileService) TouchFile(connection string, path string) error

type FullFile

type FullFile struct {
	Info   *wshrpc.FileInfo `json:"info"`
	Data64 string           `json:"data64"` // base64 encoded
}

Jump to

Keyboard shortcuts

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