Documentation ¶
Overview ¶
initializes the application and provides Init(), which can be called by either appengine or main to configure the web server
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func JSONDecorator ¶
func JSONDecorator(handler JSONHandlerFunc) http.HandlerFunc
wraps JSONHanderFunc functions and provide JSON Content-type, marshaling, and HTTP error code functionality
Types ¶
type JSONHandlerFunc ¶
type JSONHandlerFunc func(http.ResponseWriter, *http.Request) (interface{}, error)
a specialized version of http.HandlerFunc that returns (interface{}, error) and is intended to be wrapped by JSONDecorator
Directories ¶
Path | Synopsis |
---|---|
api
|
|
character
provides a simple type for representing characters who may be used throughout the application as narrarators.
|
provides a simple type for representing characters who may be used throughout the application as narrarators. |
lesson
provides the types and api methods required to serve lesson data throughout the application
|
provides the types and api methods required to serve lesson data throughout the application |
slide
provides the types and api methods required to represent slides throughout the application.
|
provides the types and api methods required to represent slides throughout the application. |
Click to show internal directories.
Click to hide internal directories.