Add broker-service

This commit is contained in:
Dan Jones 2025-05-16 15:35:44 -05:00
commit 60aeac4f4b
Signed by: dan
GPG key ID: 5B3B0F7217473A29
5 changed files with 90 additions and 0 deletions

View file

@ -0,0 +1,28 @@
package main
import (
"fmt"
"log"
"net/http"
)
const webPort = "8085"
type Config struct{}
func main() {
app := &Config{}
log.Printf("Starting broker service on port %s\n", webPort)
// http.server
srv := &http.Server{
Addr: fmt.Sprintf(":%s", webPort),
Handler: app.routes(),
}
err := srv.ListenAndServe()
if err != nil {
panic(err)
}
}