first cross-websocket ls
This commit is contained in:
parent
d7a1eb7e30
commit
1158ac4760
3 changed files with 206 additions and 0 deletions
14
fs.go
Normal file
14
fs.go
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
package kubelwagen
|
||||
|
||||
import "github.com/hanwen/go-fuse/fuse"
|
||||
|
||||
type FS interface {
|
||||
Handle(req *Request) *Response
|
||||
}
|
||||
|
||||
func ErrorResp(r *Request, err error) *Response {
|
||||
return &Response{
|
||||
ID: r.ID,
|
||||
Code: fuse.ToStatus(err),
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue