Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type EventHandler ¶
type EventHandler struct {
// contains filtered or unexported fields
}
EventHandler is a http.Handler that servers the input events over http via wabsockets
func NewEventHandler ¶
func NewEventHandler(inputEvents *pubsub.PubSub) *EventHandler
NewEventHandler creates an event habdler that subscribes from the inputEvents
func (*EventHandler) ServeHTTP ¶
func (h *EventHandler) ServeHTTP(w http.ResponseWriter, r *http.Request)
ServeHTTP implements http.Handler
type GestureHandler ¶
type GestureHandler struct {
// contains filtered or unexported fields
}
GestureHandler is a http.Handler that detect touch gestures
func NewGestureHandler ¶
func NewGestureHandler(inputEvents *pubsub.PubSub) *GestureHandler
NewGestureHandler creates an event habdler that subscribes from the inputEvents
func (*GestureHandler) ServeHTTP ¶
func (h *GestureHandler) ServeHTTP(w http.ResponseWriter, r *http.Request)
ServeHTTP implements http.Handler
type SwipeDirection ¶
type SwipeDirection string
const ( SwipeLeft SwipeDirection = "Swipe Left" SwipeRight SwipeDirection = "Swipe Right" )
Click to show internal directories.
Click to hide internal directories.