server

package
v0.0.0-...-22c4fb6 Latest Latest
Warning

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

Go to latest
Published: Mar 10, 2024 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ContextHandler

func ContextHandler(s *Server, h echo.HandlerFunc) echo.HandlerFunc

func HandleAlarmEvents

func HandleAlarmEvents(c echo.Context) error

func HandleClock

func HandleClock(c echo.Context) error

func HandleMedia

func HandleMedia(c echo.Context) error

func HandleMediaPlay

func HandleMediaPlay(c echo.Context) error

func HandleMediaStop

func HandleMediaStop(c echo.Context) error

func HandleNewsFeed

func HandleNewsFeed(c echo.Context) error

func HandleRoot

func HandleRoot(c echo.Context) error

func HandleSnooze

func HandleSnooze(c echo.Context) error

func Layout

func Layout(content templ.Component, state int, ms *services.MediaState) templ.Component

func Render

func Render(ctx echo.Context, status int, t templ.Component) error

Types

type ContextHandlerFunc

type ContextHandlerFunc func(c echo.Context, s *Server) error

type Server

type Server struct {
	MediaState        *services.MediaState
	AlarmService      *services.Alarm
	AlarmEventContext *echo.Response
	// contains filtered or unexported fields
}

func NewServer

func NewServer(listenAddr string) *Server

func (*Server) Run

func (s *Server) Run()

Jump to

Keyboard shortcuts

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