site

package
v0.0.0-...-dc37515 Latest Latest
Warning

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

Go to latest
Published: Oct 23, 2021 License: GPL-3.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Site

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

Site is the main package of this website.

func NewSite

func NewSite(config config.Storage) *Site

NewSite creates a new site from the given configuration.

func (*Site) CreateServer

func (s *Site) CreateServer(logger logrus.FieldLogger, mailerFactory func() (mailer.Mailer, error)) *server.Server

CreateServer creates the server instance with all middlewares and pages.

func (*Site) Logger

func (s *Site) Logger() logrus.FieldLogger

Logger creates the configured logger for the site.

func (*Site) Start

func (s *Site) Start()

Start starts the site.

Jump to

Keyboard shortcuts

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