send

package
v0.5.2 Latest Latest
Warning

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

Go to latest
Published: May 27, 2026 License: MIT Imports: 23 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SendFiles added in v0.2.0

func SendFiles(ctx context.Context, cfg *config.Config, filePaths []string, recipientAlias string, recipientPort int, logger *zap.SugaredLogger) error

SendFiles sends files or directories to a recipient.

Types

type IdleTimeoutReader added in v0.5.0

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

IdleTimeoutReader wraps an io.ReadCloser and cancels the context if no data is read within the configured idle duration.

func NewIdleTimeoutReader added in v0.5.0

func NewIdleTimeoutReader(r io.ReadCloser, timeout time.Duration, cancel func()) *IdleTimeoutReader

func (*IdleTimeoutReader) Close added in v0.5.0

func (tr *IdleTimeoutReader) Close() error

func (*IdleTimeoutReader) Read added in v0.5.0

func (tr *IdleTimeoutReader) Read(p []byte) (int, error)

Jump to

Keyboard shortcuts

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