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

ENG-8444 splitting main package #34

Closed
wants to merge 41 commits into from

Conversation

kqdeng
Copy link
Contributor

@kqdeng kqdeng commented Sep 4, 2020

Signed-off-by: Kelly Deng [email protected]

Description

This PR splits Hegel's main package into smaller packages: grpcserver and httpserver for more modular code.

Thanks @mmlb for the base code for the main.go file.

Why is this needed

Fixes: #

How Has This Been Tested?

How are existing users impacted? What migration steps/scripts do we need?

Checklist:

I have:

  • updated the documentation and/or roadmap (if required)
  • added unit or e2e tests
  • provided instructions on how to upgrade

@kqdeng kqdeng requested a review from a team September 4, 2020 19:18
@kqdeng kqdeng marked this pull request as draft September 4, 2020 19:19
@mmlb mmlb self-requested a review September 8, 2020 15:46
Signed-off-by: Kelly Deng <[email protected]>
Signed-off-by: Kelly Deng <[email protected]>
Signed-off-by: Kelly Deng <[email protected]>
Signed-off-by: Kelly Deng <[email protected]>
Signed-off-by: Kelly Deng <[email protected]>
@kqdeng kqdeng force-pushed the ENG-8444-split-main-package branch from f7009fb to 4a4eece Compare September 8, 2020 21:08
Signed-off-by: Kelly Deng <[email protected]>
Signed-off-by: Kelly Deng <[email protected]>
Makefile Outdated Show resolved Hide resolved
Makefile Outdated
docker-compose up --build server
test:
docker-compose up test
endif
Copy link
Contributor

Choose a reason for hiding this comment

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

missing new line

grpc-server/grpc_server.go Outdated Show resolved Hide resolved
grpc-server/grpc_server.go Outdated Show resolved Hide resolved
result.WriteRune('\n')
}
// exportedHardware transforms hardware that is returned from cacher into what we want to expose to clients
func ExportHardware(hw []byte) ([]byte, error) {
Copy link
Contributor

Choose a reason for hiding this comment

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

This doesn't seem like it belong here, maybe in hardware-getter renamed hardware?

http-server/http_server_test.go Outdated Show resolved Hide resolved
http-server/http_server_test.go Outdated Show resolved Hide resolved
main.go Outdated Show resolved Hide resolved
main.go Outdated Show resolved Hide resolved
main.go Outdated Show resolved Hide resolved
@kqdeng kqdeng force-pushed the ENG-8444-split-main-package branch from 8d27737 to 1e2830c Compare September 14, 2020 18:52
@kqdeng kqdeng force-pushed the ENG-8444-split-main-package branch from 1e2830c to e2ce18e Compare September 14, 2020 19:06
@kqdeng kqdeng force-pushed the ENG-8444-split-main-package branch from e2ce18e to 6b04c5b Compare September 17, 2020 19:00
@mmlb mmlb self-assigned this Sep 17, 2020
Signed-off-by: Kelly Deng <[email protected]>
mmlb added a commit that referenced this pull request May 17, 2021
## Description

Rebase ENG-8444 split main package to grpc-server, http-server, and hardware #34 made by kelly deng
Following are changes:
    - main package is split  into three packages: grpc-server, http-server, and hardware. 
    - hardware package includes all hardware related i.e, defining hardware structs, getting and exporting data from tink/cacher.
@mmlb
Copy link
Contributor

mmlb commented May 18, 2021

superseded by #60

@mmlb mmlb closed this May 18, 2021
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.

3 participants