moe

package module
v0.0.0-...-4a8c6e9 Latest Latest
Warning

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

Go to latest
Published: Aug 12, 2023 License: GPL-2.0 Imports: 23 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SetDefaultQueryParams

func SetDefaultQueryParams(next echo.HandlerFunc) echo.HandlerFunc

Types

type BindFlag

type BindFlag struct {
	Domain  *string
	Port    *string
	SslPort *string
	SslCert *string
	SslKey  *string
	DbConf  *string
}

type Smoe

type Smoe struct {
	CommandLineArgs *BindFlag          //命令行参数
	Db              *sqlx.DB           //数据库
	ThemeFS         *embed.FS          //主题所在文件夹
	MDParse         *goldmark.Markdown //markdown->html解析器

	Main *mail.Email //邮件提醒
	// contains filtered or unexported fields
}

func New

func New() (s *Smoe)

func (*Smoe) BindFlag

func (s *Smoe) BindFlag()

func (*Smoe) InitializeDatabase

func (s *Smoe) InitializeDatabase()

func (*Smoe) Listen

func (s *Smoe) Listen()

func (*Smoe) LoadMiddlewareRoutes

func (s *Smoe) LoadMiddlewareRoutes()

type TemplateRender

type TemplateRender struct {
	Template *template.Template //渲染模板
}

func (*TemplateRender) Render

func (t *TemplateRender) Render(w io.Writer, name string, data any, _ echo.Context) error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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