Documentation
¶
Overview ¶
Package clipboard accesses the user's desktop clipboard and streams explicit file pastes.
Index ¶
Constants ¶
View Source
const MaxBytes int64 = 1 << 40
View Source
const MaxFiles = 128
View Source
const MaxText = 1 << 20
View Source
const OpenMethod = "clipboard.open"
View Source
const PasteMethod = "clipboard.paste"
View Source
const Protocol = "clipboard-v1"
Variables ¶
This section is empty.
Functions ¶
func CheckDestination ¶
CheckDestination rejects collisions before the sender starts reading file bytes.
Types ¶
type Content ¶
type Content struct {
Kind string `json:"kind"`
Text string `json:"text,omitempty"`
Files []File `json:"files,omitempty"`
}
Content contains transfer metadata only, never source paths or file bytes.
type Result ¶
type Result struct {
Kind string `json:"kind"`
Files []string `json:"files,omitempty"`
Bytes int64 `json:"bytes"`
}
Result deliberately excludes clipboard text and source paths from tool output.
Click to show internal directories.
Click to hide internal directories.