examplealt

package
v0.0.0-...-5570f1b Latest Latest
Warning

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

Go to latest
Published: Sep 13, 2021 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New404

func New404(w http.ResponseWriter, r *http.Request)

New404 not found error page

func New500

func New500(w http.ResponseWriter, r *http.Request)

New500 internal server error page

func RenderStatic

func RenderStatic(w http.ResponseWriter, r *http.Request, layout string, tag string)

RenderStatic decorates skeleton.Renderstic handles error with custom 500 page

func Start

func Start()

Start main function

Types

type Website

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

Website example

func NewExampleWebsite

func NewExampleWebsite(addy string) *Website

NewExampleWebsite returns instance of example website running on port 80 with '/static' static fileserver use by running skeleton.ServeSite(NewExampleWebsite())

func (*Website) Dispatcher

func (w *Website) Dispatcher() dispatcher.Dispatcher

Dispatcher handles routes and middleware execution

func (*Website) Load

func (w *Website) Load() overlay.Overlay

Load template files

func (*Website) NewHTTPServer

func (ew *Website) NewHTTPServer() *http.Server

NewHTTPServer returns *http.Server

Jump to

Keyboard shortcuts

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