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

Restructure files / packages to move towards a flatter structure #192

Open
jlvoiseux opened this issue May 4, 2022 · 0 comments
Open

Restructure files / packages to move towards a flatter structure #192

jlvoiseux opened this issue May 4, 2022 · 0 comments
Labels
aws-λ-extension AWS Lambda Extension tech-debt

Comments

@jlvoiseux
Copy link
Contributor

The Go part of the extension codebase is currently composed of a main.go file and of the following packages:

  • extension
  • e2e-testing
  • logsapi

After a discussion with @stuartnelson3, I think that packages should be restructured to actually separate the core code of the extension from packages bringing additional capabilities. The proposed file structure would look like this:

.
├── cli
├── e2e-testing
│   ├── e2e_test.go
│   └── e2e_util.go
├── lambda-api (former logsapi package, which will also include logic related to the extension api)
│   ├── extension_client.go
│   ├── logs_client.go
│   └── logs_server.go
├── data_forwarder.go (former apm_server.go)
├── data_receiver.go (former route-handlers+http_server.go)
├── events.go (former process_events.go)
├── logger.go
└── main.go
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
aws-λ-extension AWS Lambda Extension tech-debt
Projects
None yet
Development

No branches or pull requests

1 participant