assets

package
v0.33.10 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewDevServer added in v0.10.14

func NewDevServer(packageDir PackageDir, devPort model.WebDevPort) (*devServer, error)

func NewFakeServer

func NewFakeServer() fakeServer

func StripPrefix added in v0.10.16

func StripPrefix(prefix string, h http.Handler) http.Handler

Middleware that attaches a server at a subpath. Modeled after http.StripPrefix, but attaches the work it did to the Request Context.

Types

type PackageDir added in v0.10.14

type PackageDir string

The directory where the package.json where our JS source code lives.

func (PackageDir) String added in v0.10.14

func (d PackageDir) String() string

type PublicPathPrefixContextKey added in v0.10.16

type PublicPathPrefixContextKey struct{}

type Server

type Server interface {
	http.Handler
	Serve(ctx context.Context) error
	TearDown(ctx context.Context)
}

func GetEmbeddedServer added in v0.26.3

func GetEmbeddedServer() (Server, bool)

Jump to

Keyboard shortcuts

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