datapool

package
v1.0.4 Latest Latest
Warning

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

Go to latest
Published: Apr 1, 2021 License: BSD-3-Clause Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Copy added in v1.0.4

func Copy(dst io.Writer, src io.Reader, timer func()) (written int64, err error)

Types

type DataPool

type DataPool struct {
	Client *sftp.Client
	Target TargetConfig
}

func New

func New(target TargetConfig) *DataPool

func (*DataPool) UploadFile

func (n *DataPool) UploadFile(name string, reader io.Reader, timer func()) error

type TargetConfig

type TargetConfig struct {
	Host     string
	Port     string
	Username string
	Password string
	Path     string
	Notify   string
}

func GetTargetConfig

func GetTargetConfig() TargetConfig

Jump to

Keyboard shortcuts

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