Skip to content
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

Merged
merged 4 commits into from
Nov 16, 2023
Merged

feat(node): add apis package #46

merged 4 commits into from
Nov 16, 2023

Conversation

saitofun
Copy link
Contributor

No description provided.

@saitofun saitofun force-pushed the feat/node_apis branch 2 times, most recently from ff7f3a9 to 9f30cf9 Compare November 16, 2023 02:30
cmd/node/apis/apis.go Show resolved Hide resolved
}

func (s *Server) Run() error {
s.engine.POST("/message", s.handleRequest)
Copy link
Member

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/apis.go Show resolved Hide resolved

type errResp struct {
type HandleErrRsp struct {
Copy link
Member

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

}

type msgReq struct {
type HandleReq struct {
Copy link
Member

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{
Copy link
Member

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

@saitofun saitofun merged commit f8fe0af into main Nov 16, 2023
1 check passed
@saitofun saitofun deleted the feat/node_apis branch November 16, 2023 09:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants