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

gRPC implementation for Mino - Handler.Process #1

Merged
merged 18 commits into from
Mar 6, 2020
Merged

Conversation

nkcr
Copy link
Contributor

@nkcr nkcr commented Mar 2, 2020

First step that only implements the simple Handler.Process

This is far from perfect and there are still untested edge cases, but that would be good to do an early review.

@nkcr nkcr added the WIP Work in progress label Mar 2, 2020
@nkcr nkcr self-assigned this Mar 2, 2020
@nkcr nkcr added mod/mino About the Mino module and removed WIP Work in progress labels Mar 5, 2020
@nkcr nkcr changed the title gRPC implementation for Mino gRPC implementation for Mino - Handler.Process Mar 5, 2020
@nkcr nkcr requested a review from Gilthoniel March 5, 2020 12:53
go.mod Outdated Show resolved Hide resolved
go.mod Outdated Show resolved Hide resolved
mino/minogrpc/mod.go Show resolved Hide resolved
mino/minogrpc/mod.go Outdated Show resolved Hide resolved
mino/minogrpc/server.go Outdated Show resolved Hide resolved
mino/minogrpc/server.go Outdated Show resolved Hide resolved
@nkcr nkcr requested a review from Gilthoniel March 6, 2020 09:06
Copy link
Contributor

@Gilthoniel Gilthoniel left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

two small comments

return nil, xerrors.Errorf("header not found in provided context")
}

apiURI, ok := headers["apiuri"]
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you add a constant for that string ?

SerialNumber: big.NewInt(1),
IPAddresses: []net.IP{net.ParseIP("127.0.0.1")},
NotBefore: time.Now(),
NotAfter: time.Now().Add(time.Hour * 24 * 180),
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also a constant here.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ok, that's done

@Gilthoniel Gilthoniel merged commit d6c9de9 into master Mar 6, 2020
@Gilthoniel Gilthoniel deleted the Mino-grpc branch March 6, 2020 11:14
bbjubjub2494 pushed a commit to bbjubjub2494/dela that referenced this pull request Aug 3, 2024
gRPC implementation for Mino - Handler.Process
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
mod/mino About the Mino module
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants