server

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: May 8, 2025 License: BSD-3-Clause Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LoadServeConfiguration

func LoadServeConfiguration(srcDir string, includeDrafts bool) (*config.Config, error)

Types

type RecursiveWatcher

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

func NewRecursiveWatcher

func NewRecursiveWatcher(directory string, ignore []string, callback func(name string)) (*RecursiveWatcher, error)

func (*RecursiveWatcher) Close

func (r *RecursiveWatcher) Close()

type Server

type Server struct {
	Config *config.Config
	SrcDir string
	// contains filtered or unexported fields
}

func NewServer

func NewServer(srcDir string, includeDrafts bool, verbose bool) (*Server, error)

func (*Server) Start

func (s *Server) Start(ready chan bool) error

func (*Server) Stop

func (s *Server) Stop()

Jump to

Keyboard shortcuts

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