server

package
v0.0.0-...-dbdcb34 Latest Latest
Warning

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

Go to latest
Published: Nov 3, 2023 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Server

type Server struct {
	// contains filtered or unexported fields
}

func NewServer

func NewServer(e *echo.Echo, rootPath string, conf config.Config, outbox mail.OutboxInt, db s3db.S3DBInt, saturdayDisco *saturdaydisco.SaturdayDisco, lunchtimeDisco *lunchtimedisco.LunchtimeDisco) *Server

func (*Server) IncomingLunchtimeEmail

func (s *Server) IncomingLunchtimeEmail(c echo.Context) error

func (*Server) IncomingSaturdayEmail

func (s *Server) IncomingSaturdayEmail(c echo.Context) error

func (*Server) Index

func (s *Server) Index(c echo.Context) error

func (*Server) Lunchtime

func (s *Server) Lunchtime(c echo.Context) error

func (*Server) LunchtimeSubmit

func (s *Server) LunchtimeSubmit(c echo.Context) error

func (*Server) RegisterRoutes

func (s *Server) RegisterRoutes()

func (*Server) Start

func (s *Server) Start() error

func (*Server) Subscribe

func (s *Server) Subscribe(c echo.Context) error

type SubscriptionRequest

type SubscriptionRequest struct {
	Email          string `json:"email"`
	WantsSaturday  bool   `json:"wantsSaturday"`
	WantsLunchtime bool   `json:"wantsLunchtime"`
	Message        string `json:"message"`
}

type Template

type Template struct {
	// contains filtered or unexported fields
}

func NewTemplateRenderer

func NewTemplateRenderer(rootPath string, reload bool) *Template

func (*Template) ESBuild

func (t *Template) ESBuild(asset string, tag string) (any, error)

func (*Template) Render

func (t *Template) Render(w io.Writer, name string, data any, c echo.Context) error

type TemplateData

type TemplateData struct {
	Saturday  saturdaydisco.TemplateData
	Lunchtime lunchtimedisco.TemplateData
}

Jump to

Keyboard shortcuts

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