fileservice

package
v0.8.9-beta.9 Latest Latest
Warning

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

Go to latest
Published: Oct 9, 2024 License: Apache-2.0 Imports: 14 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

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

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

func (*FileService) StatFile_Meta

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

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