server

package
v1.0.44 Latest Latest
Warning

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

Go to latest
Published: Apr 9, 2024 License: Unlicense Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var GlobalConfig *types.ConfigFile

Functions

func SanitizeUsername

func SanitizeUsername(first_name string, last_name string) (username string)

weak attempt at sanitizing form input to build a "username"

func ServeLoginPage

func ServeLoginPage(context *fiber.Ctx) error

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) DecreaseBrightness

func (s *Server) DecreaseBrightness(context *fiber.Ctx) error

func (*Server) GetPageAddTiledImage

func (s *Server) GetPageAddTiledImage(context *fiber.Ctx) error

func (*Server) HandleLogin

func (s *Server) HandleLogin(context *fiber.Ctx) error

POST http://localhost:5950/admin/login

func (*Server) Hide

func (s *Server) Hide(context *fiber.Ctx) error

func (*Server) IncreaseBrightness

func (s *Server) IncreaseBrightness(context *fiber.Ctx) error

func (*Server) Logout

func (s *Server) Logout(context *fiber.Ctx) error

func (*Server) Mute

func (s *Server) Mute(context *fiber.Ctx) error

func (*Server) PageAddTiledImage

func (s *Server) PageAddTiledImage(context *fiber.Ctx) error

func (*Server) PressButton

func (s *Server) PressButton(context *fiber.Ctx) error

func (*Server) RenderPage

func (s *Server) RenderPage(context *fiber.Ctx) error

func (*Server) ServeLoginPage

func (s *Server) ServeLoginPage(context *fiber.Ctx) error

func (*Server) SetupRoutes

func (s *Server) SetupRoutes()

func (*Server) Show

func (s *Server) Show(context *fiber.Ctx) error

func (*Server) Sleep

func (s *Server) Sleep(context *fiber.Ctx) error

func (*Server) Start

func (s *Server) Start()

func (*Server) UnMute

func (s *Server) UnMute(context *fiber.Ctx) error

func (*Server) Wake

func (s *Server) Wake(context *fiber.Ctx) error

Jump to

Keyboard shortcuts

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