web

package
v0.0.0-...-e97ee80 Latest Latest
Warning

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

Go to latest
Published: Aug 13, 2022 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ContextFrom

func ContextFrom(w http.ResponseWriter) context.Context

func ListenAndServe

func ListenAndServe(
	ctx context.Context,
	addr string,
	assetsDir string,
	data *Data,
) error

Types

type Data

type Data struct {
	Build *build.Info
	Model *data.Model
}

type Mux

type Mux struct {
	*http.ServeMux
	// contains filtered or unexported fields
}

func NewMux

func NewMux(ctx context.Context) *Mux

func (*Mux) ServeHTTP

func (m *Mux) ServeHTTP(
	w http.ResponseWriter,
	r *http.Request,
)

Jump to

Keyboard shortcuts

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