publicrt

package
v0.2.4 Latest Latest
Warning

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

Go to latest
Published: Sep 3, 2022 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LoadFS

func LoadFS(module *gomod.Module) (fsys fs.FS, err error)

Load the app and plugins into a single filesystem

Types

type LiveServer

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

func Live

func Live(module *gomod.Module) (*LiveServer, error)

func (*LiveServer) Serve

func (l *LiveServer) Serve(fsys fs.FS) middleware.Middleware

type Server

type Server interface {
	Serve(fsys fs.FS) middleware.Middleware
}

type StaticServer

type StaticServer struct{}

func Static

func Static() StaticServer

func (StaticServer) Serve

func (StaticServer) Serve(fsys fs.FS) middleware.Middleware

TODO: serve gzipped content

Jump to

Keyboard shortcuts

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