Documentation ¶
Index ¶
- Constants
- func RunSysInfoLoop(client *wshutil.WshRpc, connName string)
- type ByteRangeType
- type ServerImpl
- func (impl *ServerImpl) Log(format string, args ...interface{})
- func (impl *ServerImpl) MessageCommand(ctx context.Context, data wshrpc.CommandMessageData) error
- func (*ServerImpl) RemoteFileDeleteCommand(ctx context.Context, path string) error
- func (impl *ServerImpl) RemoteFileInfoCommand(ctx context.Context, path string) (*wshrpc.FileInfo, error)
- func (impl *ServerImpl) RemoteFileJoinCommand(ctx context.Context, paths []string) (*wshrpc.FileInfo, error)
- func (impl *ServerImpl) RemoteFileRenameCommand(ctx context.Context, pathTuple [2]string) error
- func (impl *ServerImpl) RemoteFileTouchCommand(ctx context.Context, path string) error
- func (impl *ServerImpl) RemoteMkdirCommand(ctx context.Context, path string) error
- func (impl *ServerImpl) RemoteStreamFileCommand(ctx context.Context, data wshrpc.CommandRemoteStreamFileData) chan wshrpc.RespOrErrorUnion[wshrpc.CommandRemoteStreamFileRtnData]
- func (*ServerImpl) RemoteWriteFileCommand(ctx context.Context, data wshrpc.CommandRemoteWriteFileData) error
- func (*ServerImpl) WshServerImpl()
Constants ¶
View Source
const BYTES_PER_GB = 1073741824
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 ¶
Types ¶
type ByteRangeType ¶
type ServerImpl ¶
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 (*ServerImpl) RemoteFileJoinCommand ¶
func (*ServerImpl) RemoteFileRenameCommand ¶ added in v0.10.0
func (impl *ServerImpl) RemoteFileRenameCommand(ctx context.Context, pathTuple [2]string) error
func (*ServerImpl) RemoteFileTouchCommand ¶ added in v0.10.0
func (impl *ServerImpl) RemoteFileTouchCommand(ctx context.Context, path string) error
func (*ServerImpl) RemoteMkdirCommand ¶ added in v0.10.0
func (impl *ServerImpl) RemoteMkdirCommand(ctx context.Context, path string) error
func (*ServerImpl) RemoteStreamFileCommand ¶
func (impl *ServerImpl) RemoteStreamFileCommand(ctx context.Context, data wshrpc.CommandRemoteStreamFileData) chan wshrpc.RespOrErrorUnion[wshrpc.CommandRemoteStreamFileRtnData]
func (*ServerImpl) RemoteWriteFileCommand ¶
func (*ServerImpl) RemoteWriteFileCommand(ctx context.Context, data wshrpc.CommandRemoteWriteFileData) error
func (*ServerImpl) WshServerImpl ¶
func (*ServerImpl) WshServerImpl()
Click to show internal directories.
Click to hide internal directories.