bsm

package
v0.0.0-...-af9f937 Latest Latest
Warning

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

Go to latest
Published: Jan 5, 2019 License: BSD-2-Clause Imports: 7 Imported by: 0

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 Init

func Init()

initializes the web server and configure routes

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.

Jump to

Keyboard shortcuts

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