server

package
v7.13.0 Latest Latest
Warning

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

Go to latest
Published: Apr 17, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewTimeoutConn added in v7.12.0

func NewTimeoutConn(conn net.Conn, timeout time.Duration) net.Conn

NewTimeoutConn refreshes read and write deadlines before each network operation so long transfers keep making progress while stalled ones time out.

Types

type Client

type Client struct {
	Handler
}

Client represents an active server object

type Handler

type Handler interface {
	Common() config.ServerCommon
	ReadDir(source string) ([]os.FileInfo, error)
	Retrieve(path string, dest io.Writer) error
	Close() error
}

Handler is a server interface

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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