-
-
Notifications
You must be signed in to change notification settings - Fork 25
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
goMarkableStream ♥ reveal.js #92
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
GoGitOps Review
Grade: A+ (99.2%)
Files: 30
Issues: 1
gofmt: 100%
go_vet: 100%
gocyclo: 96%
internal/eventhttphandler/gesture_handler.go
Line 57: warning: cyclomatic complexity 16 of function (*GestureHandler).ServeHTTP() is high (> 15) (gocyclo)
golint: 96%
internal/eventhttphandler/gesture_handler.go
Line 14: warning: exported type SwipeDirection should have comment or be unexported (golint)
internal/eventhttphandler/gesture_handler.go
Line 17: warning: exported const SwipeLeft should have comment (or a comment on this block) or be unexported (golint)
license: 100%
ineffassign: 100%
misspell: 100%
This report was generated using GoGitOps.
} | ||
|
||
// ServeHTTP implements http.Handler | ||
func (h *GestureHandler) ServeHTTP(w http.ResponseWriter, r *http.Request) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
warning: cyclomatic complexity 16 of function (*GestureHandler).ServeHTTP() is high (> 15) (gocyclo)
"github.com/owulveryck/goMarkableStream/internal/pubsub" | ||
) | ||
|
||
type SwipeDirection string |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
warning: exported type SwipeDirection should have comment or be unexported (golint)
type SwipeDirection string | ||
|
||
const ( | ||
SwipeLeft SwipeDirection = "Swipe Left" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
warning: exported const SwipeLeft should have comment (or a comment on this block) or be unexported (golint)
Features: a basic gesture detection has been implemented in the server and is available at the /gestures endpoint
The client analyse the gesture and on left and right send a post message to the iframe.
If the iframe contains a reveal.js presentation, the slides are changing