users

package
v0.8.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SocialLink struct {
	UserKey  string
	UserName string
}

type Store

type Store interface {
	LoadUser(sessionCookie string) (user *User, err error)
	StoreUser(user *User) (sessionCookie string, err error)
}

Store takes care of mapping between plaintext session cookie values and user profiles.

type User

type User struct {
	Id          string
	Email       string
	SocialLinks map[string]*SocialLink
}

Directories

Path Synopsis
stores

Jump to

Keyboard shortcuts

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