transfer

package
v0.0.0-...-e846914 Latest Latest
Warning

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

Go to latest
Published: Oct 18, 2017 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var FileTransing = make(map[string]bool)

Functions

func IsFileExists

func IsFileExists(name string) bool

Types

type DataTrans

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

func NewListener

func NewListener(ip string, port string) *DataTrans

func (*DataTrans) Accept

func (dt *DataTrans) Accept(dir string) error

type Ssh_mirror

type Ssh_mirror struct {
	Sshhostname string
	Sshport     string
	Sshuser     string
	Sshpasswd   string
	// contains filtered or unexported fields
}

func NewSftp

func NewSftp(Sshhostname string, Sshport string, Sshuser string, Sshpasswd string) (*Ssh_mirror, error)

func (*Ssh_mirror) CloseSftp

func (s *Ssh_mirror) CloseSftp()

func (*Ssh_mirror) TransFile

func (s *Ssh_mirror) TransFile(localFilePath, remoteDir string) (bool, error)

func (*Ssh_mirror) TransOrNot

func (s *Ssh_mirror) TransOrNot(localFilePath, remoteDir string) (bool, error)

Jump to

Keyboard shortcuts

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