use gin for http server

This commit is contained in:
Benson Wong
2024-11-18 15:30:16 -08:00
parent e5c909ddf7
commit c3b4bb1684
4 changed files with 204 additions and 44 deletions

View File

@@ -23,7 +23,7 @@ func main() {
}
proxyManager := proxy.New(config)
http.HandleFunc("/", proxyManager.HandleFunc)
http.HandleFunc("/", proxyManager.HandlerFunc)
fmt.Println("llama-swap listening on " + *listenStr)
if err := http.ListenAndServe(*listenStr, nil); err != nil {