server

package
v2.0.0-rc13 Latest Latest
Warning

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

Go to latest
Published: Oct 13, 2024 License: MIT Imports: 27 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Lissajous

func Lissajous(out io.Writer, size, cycles, nFrames int)

Lissajous returns an image. image canvas covers [-size to +size] nFrames is number of animation frames cycles is number of complete x oscillator revolutions

Types

type DataLoader

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

DataLoader is an embarrassment. It's a computation cache around FsLoader.

func NewDataLoader

func NewDataLoader(
	ldr *loader.FsLoader, paths []string,
	pRen parsren.MdParserRenderer, title string) *DataLoader

func (*DataLoader) FilteredBlocks

func (dl *DataLoader) FilteredBlocks() []*loader.CodeBlock

func (*DataLoader) LoadAndRender

func (dl *DataLoader) LoadAndRender() (err error)

func (*DataLoader) RenderedFiles

func (dl *DataLoader) RenderedFiles() []*parsren.RenderedMdFile

type Server

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

Server represents a webserver.

func NewServer

func NewServer(dl *DataLoader, r io.Writer) (*Server, error)

NewServer returns a new web server.

func (*Server) Serve

func (ws *Server) Serve(hostAndPort string) (err error)

Serve offers an HTTP service.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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