Skip to content

Commit 0a87d77

Browse files
committed
removing route object
1 parent 1c38b0b commit 0a87d77

File tree

1 file changed

+0
-11
lines changed

1 file changed

+0
-11
lines changed

routes.go

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,6 @@ import (
77
"github.com/rmattam/go-websocket-chat-demo/chat"
88
)
99

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-
1810
// ChatSocket : struct to define the route parameters for the chat websocket.
1911
type ChatSocket struct {
2012
Name string
@@ -23,9 +15,6 @@ type ChatSocket struct {
2315
HandlerFunc func(*chat.Hub, http.ResponseWriter, *http.Request)
2416
}
2517

26-
// Routes : list of Route parameters for configuration.
27-
type Routes []Route
28-
2918
// ChatSockets : list of Route parameters for chat websocket configuration.
3019
type ChatSockets []ChatSocket
3120

0 commit comments

Comments
 (0)