compute-sdk-go
compute-sdk-go copied to clipboard
Go SDK for building Fastly Compute applications
Requests to http-me.glitch.me occasionally fail with 500 errors, leading to test flakes [1]. @BrooksCunningham suggests using the nearly compatible http.edgecompute.app [2] instead, which seems to be more reliable and substantially...
The Compute runtime has a concept called "adaptive buffers." The idea is that when you pass a buffer into a hostcall that's too small for the result, the `buflen` error...
Currently Viceroy doesn't support the Core Cache API (added in #47) other than stubs. Once there is something more complete we should add an integration test for it there. Basis...
We were ignoring the return value anyway and it complicates wizer integration.
An app that imports fsthttp, and which builds in both go, tinygo native, and tinygo wasm (with -tag nofastlyhostcalls) stopped building on tinygo native when we upgraded it to v0.1.2;...
This is a POC that's just good enough to pass a smoke test, presented for discussion. TODO: - verify that this is the right approach - on total header length...
There are places in the SDK that induce unnecessary memory allocations / copying, and thus additional work for the garbage collector. These could be removed for improved performance.
In the following sample code, no error is returned from `configstore.Open("DOES_NOT_EXIST")`, but a `configstore.ErrStoreNotFound` error _is_ returned from `cs.Get("cat")`. ```go cs, err := configstore.Open("DOES_NOT_EXIST") // err == nil switch {...
A hostcall to expose the IP address on which the server received the HTTP request was recently added. Support has already been added in the Rust SDK (see https://docs.rs/fastly/latest/fastly/handle/fn.server_ip_addr.html), and...
Two hostcalls were recently added. Support for them has already been added in the Rust SDK, but should also be added in the Go SDK.