users

package
v0.0.0-...-22804f9 Latest Latest
Warning

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

Go to latest
Published: Oct 20, 2012 License: BSD-2-Clause-Views Imports: 6 Imported by: 0

Documentation

Overview

Package user implements basic user functionality. - Registration, deletion, update, login, logout of users. - Building the user itself (if logged in), and putting it to uni.Dat["_user"].

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type C

type C struct {
	// contains filtered or unexported fields
}

func (*C) BuildUser

func (h *C) BuildUser(a iface.Filter) (user map[string]interface{})

If there were some random database query errors or something we go on with an empty user.

func (*C) Init

func (c *C) Init(uni *context.Uni)

func (*C) Insert

func (a *C) Insert(f iface.Filter, data map[string]interface{}) (bson.ObjectId, error)

func (*C) InsertAdmin

func (a *C) InsertAdmin(f iface.Filter, data map[string]interface{}) (bson.ObjectId, error)

func (*C) Login

func (a *C) Login(f iface.Filter, data map[string]interface{}) error

func (*C) LoginForm

func (a *C) LoginForm() error

func (*C) Logout

func (a *C) Logout() error

func (*C) New

func (a *C) New() error

func (*C) NewAdmin

func (a *C) NewAdmin(f iface.Filter) error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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