Documentation ¶
Index ¶
- func EditorHandler(rw http.ResponseWriter, req *http.Request, ps httprouter.Params)
- func EngineHandler(rw http.ResponseWriter, req *http.Request, ps httprouter.Params)
- func GetRouter() *httprouter.Router
- func ImageHandler(rw http.ResponseWriter, req *http.Request, ps httprouter.Params)
- func IndexHandler(rw http.ResponseWriter, req *http.Request, ps httprouter.Params)
- func RawHandler(rw http.ResponseWriter, req *http.Request, ps httprouter.Params)
- func Start()
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func EditorHandler ¶
func EditorHandler(rw http.ResponseWriter, req *http.Request, ps httprouter.Params)
EditorHandler serves the editor page from an image route
func EngineHandler ¶
func EngineHandler(rw http.ResponseWriter, req *http.Request, ps httprouter.Params)
EngineHandler is the endpoint for which the Veoir engine events should be sent It checks if we support the sent event and handles it accordingly
func GetRouter ¶
func GetRouter() *httprouter.Router
GetRouter returns a list of routes avaliable and being listened too on the server
func ImageHandler ¶
func ImageHandler(rw http.ResponseWriter, req *http.Request, ps httprouter.Params)
ImageHandler decides whether to server the image or HTML editor
func IndexHandler ¶
func IndexHandler(rw http.ResponseWriter, req *http.Request, ps httprouter.Params)
IndexHandler serves the index editor page
func RawHandler ¶
func RawHandler(rw http.ResponseWriter, req *http.Request, ps httprouter.Params)
RawHandler handles the /raw/ path and always servers the raw image
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.