merge wasip2 branch into main#44
Conversation
Signed-off-by: Rajat Jindal <rajatjindal83@gmail.com>
[wasip2] incoming http handler
Signed-off-by: Rajat Jindal <rajatjindal83@gmail.com>
update go-modules and cm package. regen bindings
Signed-off-by: Rajat Jindal <rajatjindal83@gmail.com>
Signed-off-by: Rajat Jindal <rajatjindal83@gmail.com>
feat(wasip2/kv): add support for wasip2 kv
Signed-off-by: Rajat Jindal <rajatjindal83@gmail.com>
add llm support for wasip2 sdk
Signed-off-by: Rajat Jindal <rajatjindal83@gmail.com>
Add support for wasip2 variables
Signed-off-by: Adam Reese <adam@reese.io>
Move wasip2 sdk to v3 directory
Signed-off-by: Andrew Steurer <94206073+asteurer@users.noreply.github.com>
feat(mqtt): implement mqtt in wasip2
Signed-off-by: Andrew Steurer <94206073+asteurer@users.noreply.github.com>
feat(redis): implement redis in wasip2
Signed-off-by: Andrew Steurer <94206073+asteurer@users.noreply.github.com>
feat(mysql): implementing mysql in wasip2
Signed-off-by: Andrew Steurer <94206073+asteurer@users.noreply.github.com>
Migrate `wasip2` branch to use the new WIT bindings generator
Signed-off-by: Andrew Steurer <94206073+asteurer@users.noreply.github.com>
fix: update componentize-go endpoint
Signed-off-by: Joel Dice <joel.dice@akamai.com>
- move v3/* into the root of the repo - update the v2 packages (e.g. `sqlite`, `pg-outbound`, etc.) to v3 - remove obsolete C-based binding generation - fix broken tests and examples Signed-off-by: Joel Dice <joel.dice@akamai.com>
Signed-off-by: Joel Dice <joel.dice@akamai.com>
|
I'm not sure what the directory for |
One is for targeting the I'm open to other approaches, but I can't think of any that will work short of updating Spin to allow inbound redis components to import all the same things inbound http components can. |
|
We could change |
Ah, good to know. I'll give that a try, thanks. |
Signed-off-by: Joel Dice <joel.dice@akamai.com>
| return | ||
| } | ||
|
|
||
| if _, err := db.Exec("INSERT INTO pets VALUES (?, ?, ?, ?)", 5, "Copper", "Foxes", false); err != nil { |
| // convert the incoming request to go's net/http type | ||
| httpReq, err := NewHttpRequest(*request) | ||
| if err != nil { | ||
| //TODO(rajatjindal): return internal error from here |
There was a problem hiding this comment.
@rajatjindal Does this TODO need to be addressed before merging to main?
There was a problem hiding this comment.
FWIW, Spin will automatically return a 500 error when the handler returns without sending a response to responseOut first, so this doesn't seem particularly urgent to me.
b62d43f to
d2cc91f
Compare
|
Per bytecodealliance/componentize-go#35 and the ensuing conversation, I'm planning to tweak how |
|
Running |
|
@radu-matei This is dependent on bytecodealliance/componentize-go#35 |
|
@dicej We should add a note to the README about installing componentize-go with the rev |
Signed-off-by: Joel Dice <joel.dice@akamai.com>
Per bytecodealliance/componentize-go#35, Spin applications can now refer to WIT files by way of the `github.com/spinframework/spin-go-sdk/v3` source package; no need for the application to supply them itself. That PR also allows us to pass multiple `--world` flags to `componentize-go`, allowing us to target e.g. the `fermyon:spin/redis-trigger` _and_ `spin:up/platform` worlds at the same time (which is what Spin actually implements for Redis triggers). Signed-off-by: Joel Dice <joel.dice@akamai.com>
Signed-off-by: Joel Dice <joel.dice@akamai.com>
Signed-off-by: Joel Dice <joel.dice@akamai.com>
Signed-off-by: Joel Dice <joel.dice@akamai.com>
The branch has been hanging out for a while and seems ripe enough to merge.