We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1c38b0b commit 0a87d77Copy full SHA for 0a87d77
routes.go
@@ -7,14 +7,6 @@ import (
7
"github.com/rmattam/go-websocket-chat-demo/chat"
8
)
9
10
-// Route : struct to define the route parameters.
11
-type Route struct {
12
- Name string
13
- Method string
14
- Pattern string
15
- HandlerFunc http.HandlerFunc
16
-}
17
-
18
// ChatSocket : struct to define the route parameters for the chat websocket.
19
type ChatSocket struct {
20
Name string
@@ -23,9 +15,6 @@ type ChatSocket struct {
23
HandlerFunc func(*chat.Hub, http.ResponseWriter, *http.Request)
24
}
25
26
-// Routes : list of Route parameters for configuration.
27
-type Routes []Route
28
29
// ChatSockets : list of Route parameters for chat websocket configuration.
30
type ChatSockets []ChatSocket
31
0 commit comments