Enable CLI driver of async session #49
Reference in New Issue
Block a user
Delete Branch "lash/async-driver"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
This PR refactors the HTTP handler by extracting all code not http specific to internal/handlers/*.go
It introduces an interface RequestSession that gets passed around different phases of request lifetime.
Also added is a new CLI tool
cmd/async/main.gowhich drives the same asynchronous code execution as the http requests, but without the added overhead of using curl, postman etc.