nush

package module
v0.0.0-...-33f5cbb Latest Latest
Warning

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

Go to latest
Published: Feb 4, 2016 License: BSD-3-Clause Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SetLoggerOutput

func SetLoggerOutput(w io.Writer)

Types

type Acceptor

type Acceptor interface {
	Accept() *Session
}

type Command

type Command interface {
}

type HTTPListener

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

func NewHTTPListener

func NewHTTPListener(mux *http.ServeMux) (*HTTPListener, error)

func (*HTTPListener) Accept

func (l *HTTPListener) Accept() *Session

type SSHListener

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

func NewSSHListener

func NewSSHListener(config *ssh.ServerConfig, laddr string) (*SSHListener, error)

func (*SSHListener) Accept

func (l *SSHListener) Accept() *Session

type Session

type Session struct {
	Stream  io.ReadWriteCloser
	Context string
}

type TerminalServer

type TerminalServer []Command

func (TerminalServer) ListenAndServe

func (s TerminalServer) ListenAndServe(listeners []Acceptor)

func (TerminalServer) Serve

func (s TerminalServer) Serve(session *Session)

Jump to

Keyboard shortcuts

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