utils

package
v0.0.0-...-36c90dc Latest Latest
Warning

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

Go to latest
Published: Sep 8, 2015 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func StoreInCookies

func StoreInCookies(store *sessions.CookieStore, s *Session, w http.ResponseWriter, r *http.Request) error

Types

type Context

type Context struct {
	Store   *sessions.CookieStore
	HTTPdb  *database.Db
	Client  string
	Session *Session
}

type SError

type SError struct {
	Status int
	Front  error
	Back   error
}

func (*SError) Error

func (e *SError) Error() string

type Session

type Session struct {
	Id    int64    `json:"id"`
	Name  []string `json:"name"`
	Role  int8     `json:"role"`
	PdvId int      `json:"pdvid"`
}

func SessionFromCookies

func SessionFromCookies(store *sessions.CookieStore, r *http.Request) (*Session, error)

Jump to

Keyboard shortcuts

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