Documentation
¶
Index ¶
- func Code(w http.ResponseWriter, r *http.Request)
- func ExportToPDF(w http.ResponseWriter, r *http.Request)
- func Grid(w http.ResponseWriter, r *http.Request)
- func LastStep(w http.ResponseWriter, r *http.Request)
- func Ping(w http.ResponseWriter, r *http.Request)
- func QRCode(w http.ResponseWriter, r *http.Request)
- func Shell(w http.ResponseWriter, r *http.Request)
- func SpeakerNotes(w http.ResponseWriter, r *http.Request)
- func Static(w http.ResponseWriter, r *http.Request)
- func Step(w http.ResponseWriter, r *http.Request)
- func VSCode(w http.ResponseWriter, r *http.Request)
- func VerifyConfiguration() error
- type Page
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Code ¶
func Code(w http.ResponseWriter, r *http.Request)
Code returns the content of a source file.
func ExportToPDF ¶
func ExportToPDF(w http.ResponseWriter, r *http.Request)
ExportToPDF generates a pdf that contains one page per slide.
func Grid ¶
func Grid(w http.ResponseWriter, r *http.Request)
Grid displays a grid view of all steps as iframes.
This has the nice side-effect of warming the browser cache with all necessary resources. Otherwise the speaker and their audience may experience a lag between each step, while image resources are loading, especially if the DemoIt server is remote (not localhost).
func LastStep ¶
func LastStep(w http.ResponseWriter, r *http.Request)
LastStep redirects to the latest page.
func Ping ¶
func Ping(w http.ResponseWriter, r *http.Request)
Ping does http HEAD on a URL and returns its status.
func Shell ¶
func Shell(w http.ResponseWriter, r *http.Request)
Shell redirects to the url of a shell running in the given folder.
func SpeakerNotes ¶
func SpeakerNotes(w http.ResponseWriter, r *http.Request)
SpeakerNotes provides the presenter view, which depends on the main window to be able to display the "current" slide with notes.
func VSCode ¶
func VSCode(w http.ResponseWriter, r *http.Request)
VSCode redirects to the url of a VSCode session running with https://github.com/cdr/code-server.
func VerifyConfiguration ¶
func VerifyConfiguration() error
VerifyConfiguration runs a couple of verifications on the configuration.