server

package
v0.0.0-...-25a4204 Latest Latest
Warning

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

Go to latest
Published: Dec 4, 2023 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Server

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

func NewServer

func NewServer(log zerolog.Logger, inputDir string, port uint) (*Server, error)

func (*Server) ListenAndWatch

func (self *Server) ListenAndWatch()

func (*Server) RecreateSSG

func (self *Server) RecreateSSG()

func (*Server) ServeHTTP

func (self *Server) ServeHTTP(writer http.ResponseWriter, request *http.Request)

func (*Server) Shutdown

func (self *Server) Shutdown()

type Watcher

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

func NewWatcher

func NewWatcher(log zerolog.Logger, dir string, onChange func()) (*Watcher, error)

Jump to

Keyboard shortcuts

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