Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type App ¶
App represents the server application to handle HTTP/HTTPS requests.
func (*App) Healthcheck ¶
func (a *App) Healthcheck(w http.ResponseWriter, r *http.Request)
Healthcheck is used as handler to requests whose objective is to check the application health. If the request is successful it means the server is ok, therefore the handler will respond confirm this status in its response.
func (*App) Initialize ¶
Initialize gets the app ready for running, instantiating an HTTP router and a session to connect with a Cassandra cluster.
func (*App) TrackEvent ¶
func (a *App) TrackEvent(w http.ResponseWriter, r *http.Request)
TrackEvent will read a HTTP request body and try to unmarshall its body into an Event structure. In case this operation is successful, the created Event will be stored
Click to show internal directories.
Click to hide internal directories.