Documentation ¶
Overview ¶
Package router is responsible for setting up all the endpoints supported by the system.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Init ¶
func Init(h HealthController, eventController EventController) *mux.Router
Init initializes the endpoints we will handle
Types ¶
type EventController ¶
type EventController interface {
Create(resp http.ResponseWriter, request *http.Request)
}
EventController handles event related requests
type HealthController ¶
type HealthController interface {
Status(w http.ResponseWriter, r *http.Request)
}
HealthController Object providing over all status of the service
Click to show internal directories.
Click to hide internal directories.