Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CommandResponse ¶
////////////////////////////////////////////////////////////////////////////////
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 (*Server) Close ¶
////////////////////////////////////////////////////////////////////////////////
func (*Server) CreateListenerAndRun ¶
func (p *Server) CreateListenerAndRun(cert *tls.Certificate) error
////////////////////////////////////////////////////////////////////////////////
func (*Server) LastError ¶
////////////////////////////////////////////////////////////////////////////////
func (*Server) ListenerTCP ¶
////////////////////////////////////////////////////////////////////////////////
func (*Server) ReuseListenerAndRun ¶
////////////////////////////////////////////////////////////////////////////////