lottsa stuff
This commit is contained in:
21
steamcache/steamcache.go
Normal file
21
steamcache/steamcache.go
Normal 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!"))
|
||||
}
|
||||
Reference in New Issue
Block a user