Refactor Mizu, define an extension API and add new protocols: AMQP, Kafka (#224)
* Separate HTTP related code into `extensions/http` as a Go plugin * Move `extensions` folder into `tap` folder * Move HTTP files into `tap/extensions/lib` for now * Replace `orcaman/concurrent-map` with `sync.Map` * Remove `grpc_assembler.go` * Remove `github.com/up9inc/mizu/tap/extensions/http/lib` * Add a build script to automatically build extensions from a known path and load them * Start to define the extension API * Implement the `run()` function for the TCP stream * Add support of defining multiple ports to the extension API * Set the extension name inside the extension * Declare the `Dissect` function in the extension API * Dissect HTTP request from inside the HTTP extension * Make the distinction of outbound and inbound ports * Dissect HTTP response from inside the HTTP extension * Bring back the HTTP request-response pair matcher * Return a `*api.RequestResponsePair` ...
Showing
+6557 -49
tap/api/api.go
0 → 100644
tap/api/go.mod
0 → 100644
tap/extensions/amqp/go.mod
0 → 100644
tap/extensions/amqp/helpers.go
0 → 100644
tap/extensions/amqp/main.go
0 → 100644
tap/extensions/amqp/read.go
0 → 100644
tap/extensions/amqp/spec091.go
0 → 100644
This diff is collapsed.
tap/extensions/amqp/structs.go
0 → 100644
tap/extensions/amqp/types.go
0 → 100644
tap/extensions/amqp/write.go
0 → 100644
tap/extensions/http/go.mod
0 → 100644
tap/extensions/http/go.sum
0 → 100644
tap/extensions/http/handlers.go
0 → 100644
tap/extensions/http/main.go
0 → 100644
Please register or sign in to comment