frontend

package
v0.9.1 Latest Latest
Warning

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

Go to latest
Published: Jul 31, 2015 License: BSD-2-Clause Imports: 6 Imported by: 0

README

This is the source for the AngularJS frontend.

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// DefaultDirectory is the path to the compiled frontend.
	DefaultDirectory = "frontend/dist"

	// DefaultIndex is the name of the fallback file to render.
	DefaultIndex = "/index.html"
)

Functions

This section is empty.

Types

type Handler

type Handler struct {
	PusherKey string

	Dir   string
	Index string
	// contains filtered or unexported fields
}

Handler is an http.Handler that serves the frontend.

func New

func New(dir string) *Handler

New returns a new Handler instance.

func (*Handler) ServeHTTP

func (h *Handler) 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