server

package
v0.0.0-...-8bc3bcf Latest Latest
Warning

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

Go to latest
Published: Nov 1, 2024 License: BSD-2-Clause Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewHandler

func NewHandler(component templ.Component) echo.HandlerFunc

NewHandler that accepts a templ.Component directly

func Render

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

This custom Render replaces Echo's echo.Context.Render() with templ's templ.Component.Render().

Types

type Server

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

func New

func New(address string, db db.Database, staticfs embed.FS) *Server

func (*Server) Start

func (s *Server) Start() error

Directories

Path Synopsis
middleware

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳