build

package
v0.0.0-...-7ffdbd5 Latest Latest
Warning

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

Go to latest
Published: Apr 4, 2024 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrNotFound = errors.New("page not found")

Functions

func AddStaticHandler

func AddStaticHandler(mux *http.ServeMux)

func Admin

func Admin(w http.ResponseWriter, r *http.Request)

func GetPageSource

func GetPageSource(path string) []byte

GetPageSource gets the source code of the Pushup page at the path. Assumes path is relative to the app/pages project directory.

func GetStaticContents

func GetStaticContents(path string) []byte

GetStaticContents gets the contents of a static file at the path.

func Respond

func Respond(w http.ResponseWriter, r *http.Request) error

Types

type Responder

type Responder interface {
	// TODO(paulsmith): return a pushup.Response object instead and don't take
	// a writer
	Respond(http.ResponseWriter, *http.Request) error
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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