server

package
v0.0.0-...-9f1eba6 Latest Latest
Warning

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

Go to latest
Published: Feb 26, 2017 License: GPL-3.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CommandResponse

type CommandResponse struct {
	ServerVersion string
	Status        string
	Error         string
}

////////////////////////////////////////////////////////////////////////////////

type RemoteCommand

type RemoteCommand struct {
	Data          []byte
	Stdout        io.WriteCloser
	SendChannel   libchan.Sender
	Verbose       bool
	Debug         bool
	ClientVersion string
}

////////////////////////////////////////////////////////////////////////////////

type Server

type Server struct {
	OnPromiseReceived oprFunc
	// contains filtered or unexported fields
}

////////////////////////////////////////////////////////////////////////////////

func New

func New(host string, port int, ds *store.DataStore, opr oprFunc, noRedirect bool, serverVersion string) *Server

////////////////////////////////////////////////////////////////////////////////

func (*Server) Alive

func (p *Server) Alive() bool

////////////////////////////////////////////////////////////////////////////////

func (*Server) Close

func (p *Server) Close() error

////////////////////////////////////////////////////////////////////////////////

func (*Server) CreateListenerAndRun

func (p *Server) CreateListenerAndRun(cert *tls.Certificate) error

////////////////////////////////////////////////////////////////////////////////

func (*Server) LastError

func (p *Server) LastError() error

////////////////////////////////////////////////////////////////////////////////

func (*Server) ListenerTCP

func (p *Server) ListenerTCP() net.Listener

////////////////////////////////////////////////////////////////////////////////

func (*Server) ReuseListenerAndRun

func (p *Server) ReuseListenerAndRun(ln net.Listener, cert *tls.Certificate) error

////////////////////////////////////////////////////////////////////////////////

Jump to

Keyboard shortcuts

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