server

package
v0.0.0-...-e75814a Latest Latest
Warning

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

Go to latest
Published: Feb 16, 2025 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// HXRequestHeader is the header that indicates that the request is an htmx request.
	HXRequestHeader = "HX-Request"
	// HXHistoryRestoreRequestHeader is the header that indicates that the request is a history restore request.
	HXHistoryRestoreRequestHeader = "HX-History-Restore-Request"
)

Variables

This section is empty.

Functions

func WithBase

func WithBase(c *gin.Context, component templ.Component, title, description string) templ.Component

Types

type Handler

type Handler interface {
	Register(*gin.RouterGroup)
}

type Server

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

func NewServer

func NewServer(addr string, handler ...Handler) (*Server, error)

func (*Server) Run

func (s *Server) Run() error

func (*Server) Stop

func (s *Server) Stop(timeout time.Duration) error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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