server

package
v0.0.0-...-b7cded1 Latest Latest
Warning

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

Go to latest
Published: Aug 4, 2024 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Init

func Init(scfg *ServerCfg)

Types

type AccountsPage

type AccountsPage struct {
	BasePage
	Accounts []model.Account
}

type BasePage

type BasePage struct {
	// HTMLTitle is the value to use in the page’s <title> tag.
	HTMLTitle string

	// MetaDescription is the html used for rendering the <meta name="Description"> tag.
	MetaDescription safehtml.HTML
}

type Server

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

func (*Server) MakeHandler

func (s *Server) MakeHandler()

type ServerCfg

type ServerCfg struct {
	Cfg *config.Config
	Db  *database.Db
}

Config when init server

type TestPage

type TestPage struct {
	BasePage
	Mode string
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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