Documentation ¶
Index ¶
- Variables
- func AuthenticateUser(w http.ResponseWriter, r *http.Request)
- func Configure(vi View)
- func DeleteMeeting(w http.ResponseWriter, r *http.Request)
- func Error404(w http.ResponseWriter, r *http.Request)
- func Error500(w http.ResponseWriter, r *http.Request)
- func FileTime(name string) (string, error)
- func Home(w http.ResponseWriter, r *http.Request)
- func InvalidToken(w http.ResponseWriter, r *http.Request)
- func LoadPlugins(fms ...template.FuncMap)
- func LoadTemplates(rootTemp string, childTemps []string)
- func Login(w http.ResponseWriter, r *http.Request)
- func Logout(w http.ResponseWriter, r *http.Request)
- func MeetingIndex(w http.ResponseWriter, r *http.Request)
- func NewMeeting(w http.ResponseWriter, r *http.Request)
- func Register(w http.ResponseWriter, r *http.Request)
- func Repopulate(list []string, src url.Values, dst map[string]interface{})
- func SaveMeeting(w http.ResponseWriter, r *http.Request)
- func SaveUser(w http.ResponseWriter, r *http.Request)
- func Static(w http.ResponseWriter, r *http.Request)
- func UpdateMeeting(w http.ResponseWriter, r *http.Request)
- func Validate(req *http.Request, required []string) (bool, string)
- type Flash
- type Template
- type View
Constants ¶
This section is empty.
Variables ¶
var ( // Bootstrap class FlashError = "alert-danger" FlashSuccess = "alert-success" FlashNotice = "alert-info" FlashWarning = "alert-warning" )
Functions ¶
func AuthenticateUser ¶
func AuthenticateUser(w http.ResponseWriter, r *http.Request)
func DeleteMeeting ¶
func DeleteMeeting(w http.ResponseWriter, r *http.Request)
DeleteMeeting handles the meeting deletion
func Error404 ¶
func Error404(w http.ResponseWriter, r *http.Request)
Error404 handles 404 - Page Not Found
func Error500 ¶
func Error500(w http.ResponseWriter, r *http.Request)
Error500 handles 500 - Internal Server Error
func InvalidToken ¶
func InvalidToken(w http.ResponseWriter, r *http.Request)
InvalidToken handles CSRF attacks
func LoadPlugins ¶
LoadPlugins will combine all template.FuncMaps into one map and then set the plugins for the templates overwrite previous = true
func LoadTemplates ¶
func MeetingIndex ¶
func MeetingIndex(w http.ResponseWriter, r *http.Request)
MeetingpadReadGET displays the meetings in the meetingpad
func NewMeeting ¶
func NewMeeting(w http.ResponseWriter, r *http.Request)
func Repopulate ¶
Repopulate updates the dst map so the form fields can be refilled
func SaveMeeting ¶
func SaveMeeting(w http.ResponseWriter, r *http.Request)
func UpdateMeeting ¶
func UpdateMeeting(w http.ResponseWriter, r *http.Request)
UpdateMeeting displays the meeting update page
Types ¶
type View ¶
type View struct { BaseURI string Extension string Folder string Name string Caching bool Vars map[string]interface{} // contains filtered or unexported fields }
View attributes
func (*View) AssetTimePath ¶
AssetTimePath returns a URL with the proper base uri and timestamp appended. Works for CSS and JS assets Determines if local or on the web
func (*View) PrependBaseURI ¶
PrependBaseURI prepends the base URI to the string
func (*View) Render ¶
func (v *View) Render(w http.ResponseWriter)
Render renders a template to the writer
func (*View) RenderSingle ¶
func (v *View) RenderSingle(w http.ResponseWriter)
RenderSingle renders a template to the writer
func (*View) SendFlashes ¶
func (v *View) SendFlashes(w http.ResponseWriter)
SendFlashes allows retrieval of flash messages for using with Ajax