srv

package
v0.0.0-...-b9966b1 Latest Latest
Warning

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

Go to latest
Published: Mar 26, 2017 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ErrAuth = logs.Err("Error server authorization failed.")
	ErrDead = logs.Err("Error server not responding or blocked port.")
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Handler

type Handler interface {
	GetFullTar(dir string, tar, idx io.Writer) error
	GetDiffTar(fidx io.Reader, tar, idx io.Writer) error
	Ping() error
	Close()
}

Server Handler

type SSH

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

func DialSSH

func DialSSH(addr []byte, port int) (*SSH, error)

func (*SSH) Close

func (s *SSH) Close()

func (*SSH) GetDiffTar

func (s *SSH) GetDiffTar(fidx io.Reader, tar, idx io.Writer) error

func (*SSH) GetFullTar

func (s *SSH) GetFullTar(dir string, tar, idx io.Writer) error

func (*SSH) Ping

func (s *SSH) Ping() error

Jump to

Keyboard shortcuts

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