system

package
v0.0.0-...-d8ae0c1 Latest Latest
Warning

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

Go to latest
Published: Feb 15, 2015 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const EMAIL_REGEX string = `^([^@\s]+)@((?:[-a-z0-9]+\.)+[a-z]{2,})$`

Variables

Functions

func JSON

func JSON(c *web.C, h http.Handler) http.Handler

Types

type Application

type Application struct {
	Store *sessions.CookieStore
	DB    *mgo.Database
	// contains filtered or unexported fields
}

func NewApplication

func NewApplication() *Application

func (*Application) Close

func (application *Application) Close()

func (*Application) CreateIndexes

func (application *Application) CreateIndexes()

func (*Application) DBSession

func (application *Application) DBSession() *mgo.Session

func (*Application) Init

func (application *Application) Init()

func (*Application) Session

func (application *Application) Session(c *web.C, h http.Handler) http.Handler

type Params

type Params map[string]interface{}

func (Params) Add

func (p Params) Add(key string, value interface{})

func (Params) Get

func (p Params) Get(key string) string

func (Params) GetA

func (p Params) GetA(key string) []interface{}

func (Params) GetAString

func (p Params) GetAString(key string) []string

func (Params) GetI

func (p Params) GetI(key string) interface{}

func (Params) GetP

func (p Params) GetP(key string) Params

func (Params) Required

func (p Params) Required(keys ...string) error

func (Params) ShouldBeEmail

func (p Params) ShouldBeEmail(key string) error

Jump to

Keyboard shortcuts

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