Documentation ¶
Overview ¶
Package httpsource implements event.Source by accepting incoming HTTP requests that contain a machine.Event serialized as JSON.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type HTTPSource ¶
type HTTPSource struct {
// contains filtered or unexported fields
}
HTTPSource implements event.Source and http.Handler.
func (*HTTPSource) ServeHTTP ¶
func (h *HTTPSource) ServeHTTP(w http.ResponseWriter, r *http.Request)
ServeHTTP implements http.Handler.
Must be hooked up to the frontend to handle incoming HTTP sent Events. See rpc.go for the URL to use.
Click to show internal directories.
Click to hide internal directories.