~moody/ninep

ref: d394458419b1bc3ea43eb8426ccecfc427352ab9 ninep/srv_example_test.go -rw-r--r-- 1.6 KiB
d3944584 — Jacob Moody 4 months ago master
Rework api
Clean up exports, use *Qid for sessions
Dont export R* types, make T*.Respond take the needed args.
Storing Qid pointers reduces the uglyness of FS not being able to
modify the Qid(for example the path).
3f31f08c — Jacob Moody 4 months ago
Adapt srv_test in to an example.
Be a bit more explicit on where to find documentation.
841e42fa — Jacob Moody 4 months ago
Add constants for Qid and Dir Type/Mode
77f23520 — Jacob Moody 4 months ago
Provide a NopFS for embedding
5f4dff04 — Jacob Moody 4 months ago
Generate message code instead of by hand
Long term I think this will make it easier to refactor
64798deb — Jacob Moody 5 months ago
Rethink what needs to be exported.
Write up some usage docs
8819f81e — Jacob Moody 5 months ago
*Stat messages have a size prefix on the buffer
33a56599 — Jacob Moody 5 months ago
no need to export low level marshaling functions
1f5c776f — Jacob Moody 5 months ago
Implement session management and slight refactor
NewSrv now takes a function to create a FS object, each 9p session
is given it's own instance of a FS allocated by this function.
This does not mean that all calls in to a FS are synchronous, but
does mean state(like user names from attach) can be stored in the
fs struct itself.
35c59838 — Jacob Moody 5 months ago
first 'working' code
refactor on how responds are handled