ssh

package
v0.4.1 Latest Latest
Warning

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

Go to latest
Published: Apr 29, 2020 License: GPL-3.0 Imports: 14 Imported by: 0

README

Not working right now

Documentation

Overview

Package ssh implements an adapter that serves SSH connections. Users can ssh into the bot o interact with it. Thsi is purely a toy adapter at this time.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SSH added in v0.3.1

type SSH struct {
	sync.RWMutex
	// contains filtered or unexported fields
}

SSH implements an SSH adapter.

func New

func New(nick string, l net.Listener, cfg *ssh.ServerConfig) *SSH

New creates a new SSH Adapter

func (*SSH) Receive added in v0.3.1

func (a *SSH) Receive() <-chan *hugot.Message

Receive can be used to receieve message from users.

func (*SSH) Send added in v0.3.1

func (a *SSH) Send(ctx context.Context, m *hugot.Message)

Send can be used to Send responses back to users.

Jump to

Keyboard shortcuts

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