Skip to content

wcspromoteam/user

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commits
 
 
 
 

Repository files navigation

PACKAGE

package user
import "github.com/wcspromoteam/user"

A simple package that allows persistent server-side storage of user settings and data.


TYPES

type User struct {
    ID string // The user's ID, represented as an email in the current system.
    // contains unexported fields
}

func Get(c http.ResponseWriter, r *http.Request) (u *User, err os.Error)

func GetExisting(r *http.Request) (u *User, err os.Error)

func (u *User) Get(key string) string

func (u *User) Load() (err os.Error)

func (u *User) Save() os.Error

func (u *User) Set(key string, val string)

About

Functions and utilities for storing user/user account associated metadata.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages