httpd

package
v0.0.0-...-5fc674c Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Server

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

Server Http Server

func NewHttpdServer

func NewHttpdServer(configFile string) (*Server, error)

NewHttpdServer 创建Httpd服务实例

func (*Server) ConfigMiddleware

func (s *Server) ConfigMiddleware()

ConfigMiddleware 中间件配置

func (*Server) ConfigRender

func (s *Server) ConfigRender()

ConfigRender 渲染配置

func (*Server) ConfigRoute

func (s *Server) ConfigRoute()

ConfigRoute 路由配置

func (*Server) Start

func (s *Server) Start()

Start Httpd Server 服务期待

type WisdomTemplate

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

WisdomTemplate 实现 echo.Renderer 接口

func GetRenderTemplate

func GetRenderTemplate() *WisdomTemplate

GetRenderTemplate 获取APP的渲染模板

func (*WisdomTemplate) Render

func (t *WisdomTemplate) Render(w io.Writer, name string, data interface{}, c echo.Context) error

Jump to

Keyboard shortcuts

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