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: 0

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