zmodemfiles

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: Sep 18, 2026 License: MIT Imports: 10 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

Overview

Package zmodemfiles 管理用户通过原生对话框授权的 ZMODEM 文件句柄。

Index

Constants

View Source
const ChunkSize = 64 * 1024

Variables

This section is empty.

Functions

This section is empty.

Types

type File

type File struct {
	ID   string `json:"id"`
	Name string `json:"name"`
	// Path 是用于本机显示的绝对路径;协议仍只发送 Name。
	Path string `json:"path"`
	Size int64  `json:"size"`
}

type Store

type Store struct {
	// contains filtered or unexported fields
}

func (*Store) Close

func (s *Store) Close(id string, complete bool) error

func (*Store) CloseSession

func (s *Store) CloseSession(session string)

func (*Store) CreateDownload

func (s *Store) CreateDownload(session, grantID, name string, size int64) (File, error)

func (*Store) GrantDirectory

func (s *Store) GrantDirectory(session, path string) (string, error)

func (*Store) OpenUploads

func (s *Store) OpenUploads(session string, paths []string) ([]File, error)

func (*Store) Read

func (s *Store) Read(id string) ([]byte, error)

func (*Store) Write

func (s *Store) Write(id string, data []byte) error

Jump to

Keyboard shortcuts

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