Versions in this module Expand all Collapse all v1 v1.0.0 Sep 6, 2020 Changes in this version + func ListenAndServe(addr string, handler Handler) error + func ListenAndServeTLS(addr string, certFile, keyFile string, handler Handler) error + type AuthFunc func(rwc *Channel, user, access string) error + type AuthOpenFunc func() (interface{}, error) + type Channel struct + func (ch *Channel) Conn() interface{} + type Directory interface + Readdir func(n int) ([]os.FileInfo, error) + type Handler interface + Serve9P func(*Session) + func Stack(handlers ...Handler) Handler + type HandlerFunc func(s *Session) + func (fn HandlerFunc) Serve9P(s *Session) + type Logger interface + Printf func(string, ...interface{}) + type OwnerInfo interface + Gid func() string + Muid func() string + Uid func() string + type Request interface + Context func() context.Context + Path func() string + Rerror func(format string, args ...interface{}) + WithContext func(context.Context) Request + type Server struct + Addr string + Auth AuthFunc + ErrorLog Logger + Handler Handler + IdleTimeout time.Duration + MaxSize int64 + OpenAuth AuthOpenFunc + TLSConfig *tls.Config + TraceLog Logger + WriteTimeout time.Duration + func (srv *Server) ListenAndServe() error + func (srv *Server) ListenAndServeTLS(certFile, keyFile string) error + func (srv *Server) Serve(l net.Listener) error + type Session struct + Access string + User string + func (s *Session) Next() bool + func (s *Session) Request() Request + func (s *Session) UpdateRequest(r Request) + type Tchmod struct + Mode os.FileMode + func (t Tchmod) Rchmod(err error) + func (t Tchmod) Rerror(format string, args ...interface{}) + func (t Tchmod) WithContext(ctx context.Context) Request + type Tchown struct + Gid int + Group string + Uid int + User string + func (t Tchown) Rchown(err error) + func (t Tchown) Rerror(format string, args ...interface{}) + func (t Tchown) WithContext(ctx context.Context) Request + type Tcreate struct + Flag int + Mode os.FileMode + Name string + func (t Tcreate) Context() context.Context + func (t Tcreate) NewPath() string + func (t Tcreate) Path() string + func (t Tcreate) Rcreate(rwc interface{}, err error) + func (t Tcreate) Rerror(format string, args ...interface{}) + func (t Tcreate) WithContext(ctx context.Context) Request + type Topen struct + Flag int + func (t Topen) Context() context.Context + func (t Topen) Path() string + func (t Topen) Rerror(format string, args ...interface{}) + func (t Topen) Ropen(rwc interface{}, err error) + func (t Topen) WithContext(ctx context.Context) Request + type Tremove struct + func (t Tremove) Context() context.Context + func (t Tremove) Path() string + func (t Tremove) Rerror(format string, args ...interface{}) + func (t Tremove) Rremove(err error) + func (t Tremove) WithContext(ctx context.Context) Request + type Trename struct + NewPath string + OldPath string + func (t Trename) Path() string + func (t Trename) Rerror(format string, args ...interface{}) + func (t Trename) Rrename(err error) + func (t Trename) WithContext(ctx context.Context) Request + type Tstat struct + func (t Tstat) Context() context.Context + func (t Tstat) Path() string + func (t Tstat) Rerror(format string, args ...interface{}) + func (t Tstat) Rstat(info os.FileInfo, err error) + func (t Tstat) WithContext(ctx context.Context) Request + type Tsync struct + func (t Tsync) Rerror(format string, args ...interface{}) + func (t Tsync) Rsync(err error) + func (t Tsync) WithContext(ctx context.Context) Request + type Ttruncate struct + Size int64 + func (t Ttruncate) Rerror(format string, args ...interface{}) + func (t Ttruncate) Rtruncate(err error) + func (t Ttruncate) WithContext(ctx context.Context) Request + type Tutimes struct + Atime time.Time + Mtime time.Time + func (t Tutimes) Rerror(format string, args ...interface{}) + func (t Tutimes) Rutimes(err error) + func (t Tutimes) WithContext(ctx context.Context) Request + type Twalk struct + func (t Twalk) Context() context.Context + func (t Twalk) Path() string + func (t Twalk) Rerror(format string, args ...interface{}) + func (t Twalk) Rwalk(info os.FileInfo, err error) + func (t Twalk) WithContext(ctx context.Context) Request