flash

package
v0.0.0-...-b76ee76 Latest Latest
Warning

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

Go to latest
Published: Aug 12, 2016 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

Package flash provides one-time messages for the user.

Index

Constants

This section is empty.

Variables

View Source
var (
	// Error is a bootstrap class
	Error = "alert-danger"
	// Success is a bootstrap class
	Success = "alert-success"
	// Notice is a bootstrap class
	Notice = "alert-info"
	// Warning is a bootstrap class
	Warning = "alert-warning"
)

Functions

func Modify

func Modify(w http.ResponseWriter, r *http.Request, v *view.Info)

Modify adds the flashes to the view.

func SendFlashes

func SendFlashes(w http.ResponseWriter, r *http.Request)

SendFlashes allows retrieval of flash messages for using with Ajax.

Types

type Info

type Info struct {
	Message string
	Class   string
}

Info Flash Message

Jump to

Keyboard shortcuts

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