Documentation ¶
Index ¶
- Variables
- func SanitizeUsername(first_name string, last_name string) (username string)
- func ServeLoginPage(context *fiber.Ctx) error
- type Server
- func (s *Server) DecreaseBrightness(context *fiber.Ctx) error
- func (s *Server) GetPageAddTiledImage(context *fiber.Ctx) error
- func (s *Server) HandleLogin(context *fiber.Ctx) error
- func (s *Server) Hide(context *fiber.Ctx) error
- func (s *Server) IncreaseBrightness(context *fiber.Ctx) error
- func (s *Server) Logout(context *fiber.Ctx) error
- func (s *Server) Mute(context *fiber.Ctx) error
- func (s *Server) PageAddTiledImage(context *fiber.Ctx) error
- func (s *Server) PressButton(context *fiber.Ctx) error
- func (s *Server) RenderPage(context *fiber.Ctx) error
- func (s *Server) ServeLoginPage(context *fiber.Ctx) error
- func (s *Server) SetupRoutes()
- func (s *Server) Show(context *fiber.Ctx) error
- func (s *Server) Sleep(context *fiber.Ctx) error
- func (s *Server) Start()
- func (s *Server) UnMute(context *fiber.Ctx) error
- func (s *Server) Wake(context *fiber.Ctx) error
Constants ¶
This section is empty.
Variables ¶
View Source
var GlobalConfig *types.ConfigFile
Functions ¶
func SanitizeUsername ¶
weak attempt at sanitizing form input to build a "username"
func ServeLoginPage ¶
Types ¶
type Server ¶
type Server struct { FiberApp *fiber.App `yaml:"fiber_app"` UI *ui_wrapper.StreamDeckUI `yaml:"ui"` Config types.ConfigFile `yaml:"config"` }
func New ¶
func New(config types.ConfigFile, ui *ui_wrapper.StreamDeckUI) (server Server)
func (*Server) GetPageAddTiledImage ¶
func (*Server) HandleLogin ¶
func (*Server) SetupRoutes ¶
func (s *Server) SetupRoutes()
Click to show internal directories.
Click to hide internal directories.