handlers

package
v0.5.0-beta.2 Latest Latest
Warning

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

Go to latest
Published: Aug 9, 2026 License: AGPL-3.0 Imports: 48 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type App

type App struct {
	Contents   *services.ContentService
	Metas      *services.MetaService
	Comments   *services.CommentService
	Users      *services.UserService
	Options    *services.OptionService
	Plugins    *plugin.Manager
	DataDir    string
	UploadDir  string
	HTTPClient *compathttp.Client
	HTTPFetch  func(context.Context, string) (string, error)
	WAF        *wafManager
	// contains filtered or unexported fields
}

func New

func New(contents *services.ContentService, metas *services.MetaService, comments *services.CommentService, users *services.UserService, options *services.OptionService, plugins *plugin.Manager) *App

func NewWithPaths

func NewWithPaths(contents *services.ContentService, metas *services.MetaService, comments *services.CommentService, users *services.UserService, options *services.OptionService, plugins *plugin.Manager, dataDir, uploadDir string) *App

func (*App) Handler

func (a *App) Handler() http.Handler

Jump to

Keyboard shortcuts

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