wshremote

package
v0.8.8 Latest Latest
Warning

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

Go to latest
Published: Oct 1, 2024 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

View Source
const DirChunkSize = 128
View Source
const FileChunkSize = 16 * 1024
View Source
const MaxDirSize = 1024
View Source
const MaxFileSize = 50 * 1024 * 1024 // 10M

Variables

This section is empty.

Functions

func RunSysInfoLoop

func RunSysInfoLoop(client *wshutil.WshRpc, connName string)

Types

type ByteRangeType

type ByteRangeType struct {
	All   bool
	Start int64
	End   int64
}

type ServerImpl

type ServerImpl struct {
	LogWriter io.Writer
}

func (*ServerImpl) Log

func (impl *ServerImpl) Log(format string, args ...interface{})

func (*ServerImpl) MessageCommand

func (impl *ServerImpl) MessageCommand(ctx context.Context, data wshrpc.CommandMessageData) error

func (*ServerImpl) RemoteFileDeleteCommand

func (*ServerImpl) RemoteFileDeleteCommand(ctx context.Context, path string) error

func (*ServerImpl) RemoteFileInfoCommand

func (impl *ServerImpl) RemoteFileInfoCommand(ctx context.Context, path string) (*wshrpc.FileInfo, error)

func (*ServerImpl) RemoteFileJoinCommand

func (impl *ServerImpl) RemoteFileJoinCommand(ctx context.Context, paths []string) (*wshrpc.FileInfo, error)

func (*ServerImpl) RemoteWriteFileCommand

func (*ServerImpl) RemoteWriteFileCommand(ctx context.Context, data wshrpc.CommandRemoteWriteFileData) error

func (*ServerImpl) WshServerImpl

func (*ServerImpl) WshServerImpl()

Jump to

Keyboard shortcuts

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