Documentation ¶
Overview ¶
Package armony is a web framework for fast development, it's inspired by PHP/Symfony, NodeJS/FeathersJS and NodeJS/ExpressJS
Index ¶
- Variables
- func AddRoute(path string, controller Controller)
- func CloseDatabase()
- func Handler(w http.ResponseWriter, r *http.Request)
- func LoadDatabase() error
- func ParseTemplates(templateFolders []string)
- func RandString(n int) string
- func RemoveRoute(path string, controller Controller)
- type Controller
- type Data
- type Session
Constants ¶
This section is empty.
Variables ¶
View Source
var Routes routes
Routes : all routes
View Source
var Templates *template.Template
Templates : *template.Template
Functions ¶
func ParseTemplates ¶
func ParseTemplates(templateFolders []string)
ParseTemplates : Parse templates from configured folders
func RemoveRoute ¶
func RemoveRoute(path string, controller Controller)
RemoveRoute : Removes a new route
Types ¶
type Controller ¶
Controller : A type representing a controller funcion
type Session ¶
type Session struct {
// contains filtered or unexported fields
}
Session Object representing a session
func LoadSession ¶
func LoadSession(w *http.ResponseWriter, r *http.Request) Session
LoadSession look for a existing session || load a new one
Click to show internal directories.
Click to hide internal directories.