Files
kapow/main.go
2019-09-05 07:38:13 +02:00

33 lines
588 B
Go

package main
import (
"fmt"
b "github.com/BBVA/kapow/pkg/banner"
"net/http"
)
func main() {
ban := b.Banner("0.1.0")
fmt.Println(ban)
go func() {
http.ListenAndServe(":8080", &userServerHandler{})
}()
http.ListenAndServe(":8081", &controlAPIHandler{})
}
type userServerHandler struct {
}
func (m *userServerHandler) ServeHTTP(w http.ResponseWriter, r *http.Request) {
w.WriteHeader(http.StatusNotImplemented)
}
type controlAPIHandler struct {
}
func (m *controlAPIHandler) ServeHTTP(w http.ResponseWriter, r *http.Request) {
w.WriteHeader(http.StatusNotImplemented)
}