-
Notifications
You must be signed in to change notification settings - Fork 18
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
feat(node): add apis package #46
Conversation
ff7f3a9
to
9f30cf9
Compare
9f30cf9
to
9bbfa06
Compare
cmd/node/apis/apis.go
Outdated
} | ||
|
||
func (s *Server) Run() error { | ||
s.engine.POST("/message", s.handleRequest) |
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.
del this line, run shouldn't have path register logic
cmd/node/apis/types.go
Outdated
|
||
type errResp struct { | ||
type HandleErrRsp struct { |
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.
use errResp ? handle is verb, maybe not suitable for struct name, but for function name.
rename to private
cmd/node/apis/types.go
Outdated
} | ||
|
||
type msgReq struct { | ||
type HandleReq struct { |
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.
same as above
vm/type.go
Outdated
type Type string | ||
|
||
const ( | ||
Risc0 Type = "risc0" | ||
Halo2 Type = "halo2" | ||
) | ||
|
||
var vmEndpointConfigEnvKeyMap = map[string]Type{ |
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.
same not used in this pr, maybe can added when is used
No description provided.