server

package
v0.1.7 Latest Latest
Warning

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

Go to latest
Published: May 24, 2026 License: BSD-3-Clause Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Serve

func Serve(conf *core.Config, listen string, autoload bool, includeDrafts bool) error

Types

type Livereload

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

func (*Livereload) HandleJS

func (m *Livereload) HandleJS(w http.ResponseWriter, r *http.Request)

func (*Livereload) HandleWS

func (m *Livereload) HandleWS(w http.ResponseWriter, r *http.Request)

func (*Livereload) Notify

func (m *Livereload) Notify(path string)

func (*Livereload) ServeHTML

func (m *Livereload) ServeHTML(w http.ResponseWriter, file fs.File)

type Server

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

func (*Server) ServeHTTP

func (m *Server) ServeHTTP(w http.ResponseWriter, r *http.Request)

func (*Server) Start

func (s *Server) Start(listen string) error

Jump to

Keyboard shortcuts

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