lib9p

Go 9P library.
Log | Files | Refs

commit 5772f41aabd4d84e6be16ce0387f129b04a4c818
parent 5d264ba3da16227eda7e838c979ec5f5c7b6698f
Author: Matsuda Kenji <info@mtkn.jp>
Date:   Thu, 19 Oct 2023 06:08:58 +0900

update auth

Diffstat:
Mauth.go | 13++-----------
1 file changed, 2 insertions(+), 11 deletions(-)

diff --git a/auth.go b/auth.go @@ -6,7 +6,7 @@ import ( ) type AuthFile struct { - Q Qid // TODO: how to avoid name confliction + Qid Qid Uname string Aname string AuthOK bool @@ -14,19 +14,10 @@ type AuthFile struct { R io.Reader } -func (af *AuthFile) Parent() (File, error) { - return nil, errors.New("no parent for auth file") -} - -func (af *AuthFile) Child() ([]File, error) { - return nil, errors.New("no parent for auth file") -} - func (af *AuthFile) Stat() (*FileInfo, error) { return nil, errors.New("auth file") } -func (af *AuthFile) Qid() Qid { return af.Q } -func (af *AuthFile) Open(OpenMode) error { return nil } + func (af *AuthFile) Close() error { return nil } func (af *AuthFile) Read(p []byte) (int, error) { return af.R.Read(p) } func (af *AuthFile) Write(p []byte) (int, error) { return af.W.Write(p) } \ No newline at end of file