lottsa stuff

This commit is contained in:
2025-01-19 20:17:57 -06:00
parent 88ecb1bc24
commit 2be7b117ea
8 changed files with 424 additions and 0 deletions

21
steamcache/steamcache.go Normal file
View File

@@ -0,0 +1,21 @@
package steamcache
import "net/http"
type SteamCache struct {
}
func New() *SteamCache {
return &SteamCache{}
}
func (sc *SteamCache) Run() {
http.ListenAndServe(":8080", sc)
}
func (sc *SteamCache) ServeHTTP(w http.ResponseWriter, r *http.Request) {
//TODO: proxy request to steam servers and cache the response
// for now, just return a simple response
w.Write([]byte("Hello, World!"))
}