-
Notifications
You must be signed in to change notification settings - Fork 13
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Folder restructure #178
Folder restructure #178
Conversation
split to several packages: - frontend - middleend - backend This will help importing this library from other projects TODOs: - remove some code dup in tests - split to more files like nvme vs virtio Signed-off-by: Boris Glimcher <[email protected]>
Codecov Report
@@ Coverage Diff @@
## main #178 +/- ##
==========================================
- Coverage 48.72% 43.76% -4.97%
==========================================
Files 4 4
Lines 1250 1250
==========================================
- Hits 609 547 -62
- Misses 622 688 +66
+ Partials 19 15 -4
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. |
Signed-off-by: Boris Glimcher <[email protected]>
} | ||
|
||
log.Printf("SPDK mockup Server: got : %s", string(data)) | ||
log.Printf("SPDK mockup Server: snd : %s", spdk) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
sEnd?
pb.RegisterNullDebugServiceServer(s, &server.Server{}) | ||
pb.RegisterAioControllerServiceServer(s, &server.Server{}) | ||
pb.RegisterMiddleendServiceServer(s, &server.Server{}) | ||
pb.RegisterFrontendNvmeServiceServer(s, &frontend.Server{}) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Would it be sufficient to create only one frontend.Server
instance and pass it into RegisterFrontendNvmeServiceServer
, RegisterFrontendVirtioBlkServiceServer
etc?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hmm good question
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Changes look good. Other comments will be resolved at later time.
"testing" | ||
|
||
"google.golang.org/protobuf/proto" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit, but I'd organize this with the other protobuf import below
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'll run goimport
tool to auto-sort this
@artek-koltun I will merge this one and address your comments in a new PR that I already have pending. |
split to several packages:
This will help importing this library from other projects
TODOs:
Signed-off-by: Boris Glimcher [email protected]