lib9p

Go 9P library.
Log | Files | Refs | LICENSE

commit ce0b99eea7036da62c69bb2c845f00d673004454
parent 39912e51561efeca6d0fd179d365ef3ab99eb081
Author: Matsuda Kenji <info@mtkn.jp>
Date:   Thu, 29 Aug 2024 15:06:50 +0900

add AuthInfo

Diffstat:
Mfactotum.go | 8++++++++
1 file changed, 8 insertions(+), 0 deletions(-)

diff --git a/factotum.go b/factotum.go @@ -8,6 +8,14 @@ import ( "os" ) +type AuthInfo struct { + string cuid // caller id + string suid // server id + string cap // capability + int nsecret // length of secret + string secret +} + func SetFactotum(s *Server, rpcpath string) error { s.Auth = func(ctx context.Context, r *request) error { ifcall := r.ifcall.(*TAuth) // TODO: need assertion?