listener

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Aug 25, 2022 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Listen9p

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

Listen9p implements a listener using the 9p protocol

func NewListen9p

func NewListen9p(addr string, key, cert string) (Listen9p, error)

NewListen9p returns a new listener If a key and cert are provided, the listener will use TLS

func (Listen9p) Address

func (np Listen9p) Address() string

func (Listen9p) Auth

func (np Listen9p) Auth(ap *auth.Protocol) error

func (Listen9p) Listen

func (np Listen9p) Listen() error

func (Listen9p) Register

func (np Listen9p) Register(filer store.Filer, cbs callback.Callback) error

type Listener

type Listener interface {
	// Auth proxies the auth protocol for authentication
	Auth(*auth.Protocol) error
	// Address returns the dialstring of the listening service
	Address() string
	// Listen listens for client connections
	Listen() error
	// Register accepts a Storage, and associates a Filer datatset with the Listener session
	// Additionally, a callback can be registered to allow on-connect/command information
	Register(store.Filer, callback.Callback) error
}

type NewSsh

type NewSsh int

Jump to

Keyboard shortcuts

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