listen9p

package
v0.3.2 Latest Latest
Warning

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

Go to latest
Published: Jun 21, 2023 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Err9pNoOpen       = Err9p("store does not implement Opener")
	Err9pFileNotFound = Err9p("file not found")
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Err9p added in v0.2.3

type Err9p string

func (Err9p) Error added in v0.2.3

func (e Err9p) Error() string

type Session

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

func NewSession

func NewSession(address string, key, cert string, debug bool) (*Session, error)

func (*Session) Address

func (s *Session) Address() string

func (*Session) Auth

func (s *Session) Auth(ap *auth.Protocol) error

Proxy the auth over the raw connection

func (*Session) Listen

func (s *Session) Listen() error

Listen on configured network for clients

func (*Session) Register

func (s *Session) Register(filer store.Filer, cmd commander.Commander, cb callback.Callback) error

Here we need a command channel as well to move it out of listen Wrap in a type so we can not do bare channels

func (*Session) Serve9P

func (s *Session) Serve9P(x *styx.Session)

Technically internal, this is used by Styx

func (*Session) SetActivity added in v0.3.0

func (s *Session) SetActivity(act func(string))

Jump to

Keyboard shortcuts

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