Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func JSONResponse ¶
func JSONResponse(w http.ResponseWriter, code int, response interface{})
JSONResponse writter
Types ¶
type Controller ¶
type Controller interface { Healthz(w http.ResponseWriter, r *http.Request) Statusz(w http.ResponseWriter, r *http.Request) CreateLog(w http.ResponseWriter, r *http.Request) UpdateLog(w http.ResponseWriter, r *http.Request) }
Controller handles the HTTP requests
func New ¶
func New( c string, v string, r counter.Repository, s counter.Storage, ) Controller
New returns a controller
Click to show internal directories.
Click to hide internal directories.