fileservice

package
v0.8.12-beta.5 Latest Latest
Warning

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

Go to latest
Published: Oct 18, 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) 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