web

package
v0.3.5 Latest Latest
Warning

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

Go to latest
Published: Jun 26, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Overview

Package web provides a set of templates for the specified web router.

Package web provides a set of templates for the specified web router.

Package web provides a set of templates for the specified web router.

Package web provides a set of templates for the specified web router.

Package web provides a set of templates for the specified web router.

Package web provides a set of templates for the specified web router.

Package web provides a set of templates for the specified web router.

Package web provides a set of templates for the specified web router.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ChiTemplate

type ChiTemplate struct{}

ChiTemplate is a struct that provides methods to generate templates for a Chi-based HTTP server.

func (ChiTemplate) Main

func (c ChiTemplate) Main() []byte

Main returns the main template for the Chi-based HTTP server.

func (ChiTemplate) Routes

func (c ChiTemplate) Routes() []byte

Routes returns the routes template for the Chi-based HTTP server.

func (ChiTemplate) RoutesWithDB added in v0.3.0

func (c ChiTemplate) RoutesWithDB() []byte

Routes returns the routes for DB template for the Chi-based HTTP server.

func (ChiTemplate) Server

func (c ChiTemplate) Server() []byte

Server returns the server template for the Chi-based HTTP server.

func (ChiTemplate) ServerWithDB added in v0.3.0

func (c ChiTemplate) ServerWithDB() []byte

Routes returns the DB server template for the Chi-based HTTP server.

type EchoTemplate

type EchoTemplate struct{}

EchoTemplate is a struct that provides methods to generate templates for an Echo-based HTTP server.

func (EchoTemplate) Main

func (e EchoTemplate) Main() []byte

Main returns the main template for the Echo-based HTTP server.

func (EchoTemplate) Routes

func (e EchoTemplate) Routes() []byte

Routes returns the routes template for the Echo-based HTTP server.

func (EchoTemplate) RoutesWithDB added in v0.3.0

func (e EchoTemplate) RoutesWithDB() []byte

Routes returns the DB routes template for the Echo-based HTTP server.

func (EchoTemplate) Server

func (e EchoTemplate) Server() []byte

Server returns the server template for the Echo-based HTTP server.

func (EchoTemplate) ServerWithDB added in v0.3.0

func (e EchoTemplate) ServerWithDB() []byte

Routes returns the DB server template for the Echo-based HTTP server.

type FiberTemplate

type FiberTemplate struct{}

FiberTemplate is a struct that provides methods to generate templates for a Fiber-based HTTP server.

func (FiberTemplate) Main

func (f FiberTemplate) Main() []byte

Main returns the main template for the Fiber-based HTTP server.

func (FiberTemplate) Routes

func (f FiberTemplate) Routes() []byte

Routes returns the routes template for the Fiber-based HTTP server.

func (FiberTemplate) RoutesWithDB added in v0.3.0

func (f FiberTemplate) RoutesWithDB() []byte

Routes returns the DB routes template for the Fiber-based HTTP server.

func (FiberTemplate) Server

func (f FiberTemplate) Server() []byte

Server returns the server template for the Fiber-based HTTP server.

func (FiberTemplate) ServerWithDB added in v0.3.0

func (f FiberTemplate) ServerWithDB() []byte

Routes returns the DB server template for the Fiber-based HTTP server.

type GinTemplate

type GinTemplate struct{}

GinTemplate is a struct that provides methods to generate templates for a Gin-based HTTP server.

func (GinTemplate) Main

func (g GinTemplate) Main() []byte

Main returns the main template for the Gin-based HTTP server.

func (GinTemplate) Routes

func (g GinTemplate) Routes() []byte

Routes returns the routes template for the Gin-based HTTP server.

func (GinTemplate) RoutesWithDB added in v0.3.0

func (g GinTemplate) RoutesWithDB() []byte

Routes returns the DB routes template for the Gin-based HTTP server.

func (GinTemplate) Server

func (g GinTemplate) Server() []byte

Server returns the server template for the Gin-based HTTP server.

func (GinTemplate) ServerWithDB added in v0.3.0

func (g GinTemplate) ServerWithDB() []byte

Routes returns the DB server template for the Gin-based HTTP server.

type GorillaTemplate

type GorillaTemplate struct{}

GorillaTemplate is a struct that provides methods to generate templates for a Gorilla-based HTTP server.

func (GorillaTemplate) Main

func (g GorillaTemplate) Main() []byte

Main returns the main template for the Gorilla-based HTTP server.

func (GorillaTemplate) Routes

func (g GorillaTemplate) Routes() []byte

Routes returns the routes template for the Gorilla-based HTTP server.

func (GorillaTemplate) RoutesWithDB added in v0.3.0

func (g GorillaTemplate) RoutesWithDB() []byte

Routes returns the DB routes template for the Gorilla-based HTTP server.

func (GorillaTemplate) Server

func (g GorillaTemplate) Server() []byte

Server returns the server template for the Gorilla-based HTTP server.

func (GorillaTemplate) ServerWithDB added in v0.3.0

func (g GorillaTemplate) ServerWithDB() []byte

Routes returns the DB server template for the Gorilla-based HTTP server.

type HttpRouterTemplate

type HttpRouterTemplate struct{}

HttpRouterTemplate is a struct that provides methods to generate templates for a HttpRouter-based HTTP server.

func (HttpRouterTemplate) Main

func (h HttpRouterTemplate) Main() []byte

Main returns the main template for the HttpRouter-based HTTP server.

func (HttpRouterTemplate) Routes

func (h HttpRouterTemplate) Routes() []byte

Routes returns the routes template for the HttpRouter-based HTTP server.

func (HttpRouterTemplate) RoutesWithDB added in v0.3.0

func (h HttpRouterTemplate) RoutesWithDB() []byte

Routes returns the DB routes template for the HttpRouter-based HTTP server.

func (HttpRouterTemplate) Server

func (h HttpRouterTemplate) Server() []byte

Server returns the server template for the HttpRouter-based HTTP server.

func (HttpRouterTemplate) ServerWithDB added in v0.3.0

func (h HttpRouterTemplate) ServerWithDB() []byte

Routes returns the DB server template for the HttpRouter-based HTTP server.

type StandardLibraryTemplate

type StandardLibraryTemplate struct{}

StandardLibraryTemplate is a struct that provides methods to generate templates for a standard library-based HTTP server.

func (StandardLibraryTemplate) Main

func (s StandardLibraryTemplate) Main() []byte

Main returns the main template for the standard-library-based HTTP server.

func (StandardLibraryTemplate) Routes

func (s StandardLibraryTemplate) Routes() []byte

Routes returns the routes template for the standard-library-based HTTP server.

func (StandardLibraryTemplate) RoutesWithDB added in v0.3.0

func (s StandardLibraryTemplate) RoutesWithDB() []byte

Routes returns the DB routes template for the standard-library-based HTTP server.

func (StandardLibraryTemplate) Server

func (s StandardLibraryTemplate) Server() []byte

Server returns the server template for the standard-library-based HTTP server.

func (StandardLibraryTemplate) ServerWithDB added in v0.3.0

func (s StandardLibraryTemplate) ServerWithDB() []byte

Routes returns the DB server template for the standard-library-based HTTP server.

Jump to

Keyboard shortcuts

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