router

package
v0.0.0-...-b3748bf Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 8, 2023 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

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

func Start

func Start()

Start initiates the HTTP server for webhooks and requests the bot to start

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL