Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewEventsHandler ¶
NewEventsHandler creates an http.Handler to handle the events endpoint
func NewHandler ¶
NewHandler creates http.Handler(s) for the /v1/events and /v1/health endpoints
func NewHealthCheckHandler ¶
NewHealthCheckHandler creates handler for performing health check
Types ¶
type ErrorHandler ¶
An ErrorHandler represents an error with a message and a status code
func NewErrorHandler ¶
func NewErrorHandler(code int, message string) *ErrorHandler
NewErrorHandler creates a new ErrorHandler with the given code and message
func (*ErrorHandler) ServeHTTP ¶
func (eh *ErrorHandler) ServeHTTP(w http.ResponseWriter, r *http.Request)
Click to show internal directories.
Click to hide internal directories.