add notification server message types

This commit is contained in:
diPhantxm
2023-07-26 04:18:24 +03:00
parent add4202b3e
commit e76b9f3961
2 changed files with 355 additions and 0 deletions

View File

@@ -0,0 +1,21 @@
package notifications
import (
"net/http"
)
type NotificationServer struct{}
func NewNotificationServer() *NotificationServer {
return &NotificationServer{}
}
func (ns *NotificationServer) Run() error {
mux := http.NewServeMux()
mux.HandleFunc("/", ns.handler)
return http.ListenAndServe("", mux)
}
func (ns *NotificationServer) handler(rw http.ResponseWriter, req *http.Request) {
}