web

package
v0.14.0 Latest Latest
Warning

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

Go to latest
Published: Jul 8, 2016 License: AGPL-3.0 Imports: 5 Imported by: 0

README

Uses github.com/elazarl/go-bindata-assetfs, which must be installed to 'go generate' to create bindata_assetfs.go

Documentation

Overview

Package web contains the Documize static web data.

Index

Constants

View Source
const (
	// SiteModeNormal serves app
	SiteModeNormal = ""
	// SiteModeOffline serves offline.html
	SiteModeOffline = "1"
	// SiteModeSetup tells Ember to serve setup route
	SiteModeSetup = "2"
	// SiteModeBadDB redirects to db-error.html page
	SiteModeBadDB = "3"
)

Variables

View Source
var SiteInfo struct {
	DBname, DBhash, Issue string
}

SiteInfo describes set-up information about the site

View Source
var SiteMode string

SiteMode defines that the web server should show the system to be in a particular state.

Functions

func EmberHandler

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

EmberHandler provides the webserver for pages developed using the Ember programming environment.

func ReadFile

func ReadFile(filename string) ([]byte, error)

ReadFile is intended to substitute for ioutil.ReadFile().

func StaticAssetsFileSystem

func StaticAssetsFileSystem() http.FileSystem

StaticAssetsFileSystem data encoded in the go:generate above.

Types

This section is empty.

Jump to

Keyboard shortcuts

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