Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Application ¶
type Application interface { // Send produces a message with fallback. Send(topic string, key, data []byte) // IsHealthy checks the health of the Application. IsHealthy() error }
Application represents the main application.
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
Server represents a http server handler.
func (*Server) HealthHandler ¶
func (s *Server) HealthHandler(w http.ResponseWriter, r *http.Request)
HealthHandler handles health requests.
func (*Server) SendMessageHandler ¶
func (s *Server) SendMessageHandler(w http.ResponseWriter, r *http.Request)
SendMessageHandler handles requests to send a message.
Click to show internal directories.
Click to hide internal directories.