server

package
v0.0.0-...-ed9bfff Latest Latest
Warning

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

Go to latest
Published: Dec 11, 2023 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewApp

func NewApp(client *ent.Client) *echo.Echo

NewApp initializes a new server application with predefined middleware and routes. It sets read, write and idle timeouts for the server and adds middleware for recovery, compression, logging, security headers and CSRF protection. Finally, it initializes the routes for the application.

Types

type URL

type URL struct {
	XMLName    xml.Name `xml:"url"`
	Loc        string   `xml:"loc"`
	LastMod    string   `xml:"lastmod,omitempty"`
	ChangeFreq string   `xml:"changefreq,omitempty"`
	Priority   float64  `xml:"priority,omitempty"`
}

type URLSet

type URLSet struct {
	XMLName xml.Name `xml:"urlset"`
	XMLNS   string   `xml:"xmlns,attr"`
	URLs    []URL    `xml:"url"`
}

Directories

Path Synopsis
templ: version: 0.2.432
templ: version: 0.2.432

Jump to

Keyboard shortcuts

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