Skip to content

Re-organise folders structure #352

@Strech

Description

@Strech

To follow best practices and allow us to have a better ability to test and develop new features, I would like to open discussion around packages reorganisation

toxiproxy/
├── bin/
├── cmd/
│   ├── cli/
│   │   └── main.go
│   ├── server/
│   │   └── main.go
│   └── dashboard
│       └── main.go
├── pkg/
│   ├── client/
│   │   └── ...
│   ├── server/
│   │   └── ...
│   ├── dashboard/
│   │   └── ...
│   └── toxics/
│   │   └── ...
│   └── stream/
│   │   └── ...
│   └── e2e/ (renamed `testing` see below)
│   │   └── ...
│   └── toxiproxytest/ (renamed `testhelper` see: https://pkg.go.dev/net/http/httptest)
│   │   └── ...
├── ...
└── README.md

Also I think it makes sense to restructure testing folder, since one of the files endpoint is used in Makefile to run e2e (maybe we just should rename it to be e2e/main.go) and benchmark_test.go is used only for benchmarking also in e2e tests.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions