Documentation
¶
Index ¶
- type Listen9p
- func (np Listen9p) Address() string
- func (np Listen9p) Auth(ap *auth.Protocol) error
- func (np Listen9p) Listen() error
- func (np Listen9p) Register(filer store.Filer, commander commander.Commander, callback callback.Callback) error
- func (np Listen9p) SetActivity(act func(string))
- func (np Listen9p) Type() string
- type Listener
- type NewSsh
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 ¶
NewListen9p returns a new listener If a key and cert are provided, the listener will use TLS
func (Listen9p) SetActivity ¶ added in v0.3.0
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
// SetActivity is a callback used to notify when a client has read content from a particular buffer
// It shuold reset the unread count for that given buffer to zero
SetActivity(func(string))
// 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, commander.Commander, callback.Callback) error
Type() string
}
Listener provides a type which can handle incoming client connections
Click to show internal directories.
Click to hide internal directories.