heron

package module
v0.0.0-...-a5bbee6 Latest Latest
Warning

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

Go to latest
Published: Oct 5, 2015 License: MIT Imports: 17 Imported by: 1

README

heron

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AccountController

func AccountController(c web.C, w http.ResponseWriter, r *http.Request)

func AccountSignController

func AccountSignController(c web.C, w http.ResponseWriter, r *http.Request)

func AccountSignInViewController

func AccountSignInViewController(c web.C, w http.ResponseWriter, r *http.Request)

func AccountSignUpViewController

func AccountSignUpViewController(c web.C, w http.ResponseWriter, r *http.Request)

func CurrentAccount

func CurrentAccount(r *http.Request) (models.Account, error)

func EventController

func EventController(c web.C, w http.ResponseWriter, r *http.Request)

func EventsController

func EventsController(c web.C, w http.ResponseWriter, r *http.Request)

func FollowController

func FollowController(c web.C, w http.ResponseWriter, r *http.Request)

func FollowsController

func FollowsController(c web.C, w http.ResponseWriter, r *http.Request)

func GetDatabase

func GetDatabase() gorm.DB

func IndexController

func IndexController(c web.C, w http.ResponseWriter, r *http.Request)

func Init

func Init()

func Migrate

func Migrate()

func ParseJsonFile

func ParseJsonFile(path string, v interface{})

func ParseTemplate

func ParseTemplate(file, baseFile string, data map[string]interface{}) []byte

func RenderJson

func RenderJson(w http.ResponseWriter, data interface{})

func RenderTemplate

func RenderTemplate(w http.ResponseWriter, file, baseFile string, data map[string]interface{})

func SetupRoutes

func SetupRoutes()

func StartServer

func StartServer()

Types

type ConfigFile

type ConfigFile struct {
	Debug        bool   `json:"debug"`
	LogPath      string `json:"log_path"`
	SecretKey    string `json:"secret_key"`
	TemplatePath string `json:"template_path"`
	StaticPath   string `json:"static_path"`
	DatabaseURI  string `json:"database_uri"`
}
var Config ConfigFile

type Route

type Route struct {
	// contains filtered or unexported fields
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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