Skip to content

Commit

Permalink
removing route object
Browse files Browse the repository at this point in the history
  • Loading branch information
rmattam committed Jan 16, 2018
1 parent 1c38b0b commit 0a87d77
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions routes.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,6 @@ import (
"github.com/rmattam/go-websocket-chat-demo/chat"
)

// Route : struct to define the route parameters.
type Route struct {
Name string
Method string
Pattern string
HandlerFunc http.HandlerFunc
}

// ChatSocket : struct to define the route parameters for the chat websocket.
type ChatSocket struct {
Name string
Expand All @@ -23,9 +15,6 @@ type ChatSocket struct {
HandlerFunc func(*chat.Hub, http.ResponseWriter, *http.Request)
}

// Routes : list of Route parameters for configuration.
type Routes []Route

// ChatSockets : list of Route parameters for chat websocket configuration.
type ChatSockets []ChatSocket

Expand Down

0 comments on commit 0a87d77

Please sign in to comment.