Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ListenAndServe ¶
func ListenAndServe(addr string, serverConfig *ssh.ServerConfig, callbackFn func(c ssh.ConnMetadata) (*ssh.Client, error), wrapFn func(c ssh.ConnMetadata, r io.ReadCloser) (io.ReadCloser, error), closeFn func(c ssh.ConnMetadata) error, ) error
func NewLogReadCloser ¶
func NewLogReadCloser(r io.ReadCloser) io.ReadCloser
func NewTypeWriterReadCloser ¶
func NewTypeWriterReadCloser(r io.ReadCloser) io.ReadCloser
Types ¶
type LogReadCloser ¶
type LogReadCloser struct {
io.ReadCloser
}
func (*LogReadCloser) Close ¶
func (lr *LogReadCloser) Close() error
type TypeWriterReadCloser ¶
type TypeWriterReadCloser struct { io.ReadCloser // contains filtered or unexported fields }
func (*TypeWriterReadCloser) Close ¶
func (lr *TypeWriterReadCloser) Close() error
func (*TypeWriterReadCloser) Read ¶
func (lr *TypeWriterReadCloser) Read(p []byte) (n int, err error)
func (*TypeWriterReadCloser) String ¶
func (lr *TypeWriterReadCloser) String() string
Click to show internal directories.
Click to hide internal directories.