routers

package
v1.2.25 Latest Latest
Warning

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

Go to latest
Published: Apr 16, 2026 License: MIT Imports: 39 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BindURLs added in v1.0.0

func BindURLs()

BindURLs 为前端绑定 API 路由

func EmbedStaticFiles added in v1.0.0

func EmbedStaticFiles()

EmbedStaticFiles 绑定静态资源

func GetWebServer added in v1.0.0

func GetWebServer() *echo.Echo

GetWebServer 获取echo.Echo (实现了 http.Handler 接口)

func InitEcho added in v1.0.0

func InitEcho()

func RestartWebServer added in v1.0.0

func RestartWebServer()

RestartWebServer 停止当前的服务器并重新启动(比如切换端口的时候)

func SetAutoTLS added in v1.1.5

func SetAutoTLS(e *echo.Echo)

Auto TLS 设置,参考资料: https://echo.labstack.com/docs/cookbook/auto-tls

func SetEchoLogger added in v1.0.0

func SetEchoLogger(e *echo.Echo)

SetLogger 设置日志中间件

func SetHTTPErrorHandler added in v1.2.20

func SetHTTPErrorHandler(e *echo.Echo)

func SetHttpPort added in v1.0.0

func SetHttpPort()

SetHttpPort 设置服务端口

func SetMiddleware added in v1.0.0

func SetMiddleware()

SetMiddleware 设置 Echo 的中间件等

func StartEcho added in v1.0.0

func StartEcho(e *echo.Echo) error

StartEcho 启动网页服务

func StartTailscale added in v1.1.0

func StartTailscale()

StartTailscale 根据配置启动或停止 Tailscale 服务

func StartWebServer

func StartWebServer() error

StartWebServer 启动web服务

func StopTailscale added in v1.1.0

func StopTailscale()

StopTailscale 停止 Tailscale 服务

func StopWebServer added in v1.0.0

func StopWebServer() error

StopWebServer 停止当前的HTTP服务器

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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