server

package
v0.0.0-...-1c092ed Latest Latest
Warning

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

Go to latest
Published: Mar 26, 2024 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Overview

Package server is the part of the service that serves it.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewServer

func NewServer(app *fiber.App) *fiber.App

NewServer creates the new server and sets up the listener

func NotFoundMiddleware

func NotFoundMiddleware(c *fiber.Ctx) error

func Render

func Render(c *fiber.Ctx, component templ.Component, options ...func(*templ.ComponentHandler)) error

Types

type ErrorResponse

type ErrorResponse struct {
	Error   string `json:"error"`
	Message string `json:"message"`
}

ErrorResponse is a struct for error responses

Jump to

Keyboard shortcuts

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