user

package
v0.0.0-...-83b3cd9 Latest Latest
Warning

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

Go to latest
Published: Oct 4, 2015 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FromMngUser

func FromMngUser(mngu User) user.User

Types

type Source

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

func NewSource

func NewSource(db *mgo.Database) Source

func (*Source) Add

func (s *Source) Add(u *user.User) (err error)

func (Source) Get

func (s Source) Get(uid user.Id) (*user.User, error)

type User

type User struct {
	Id         string
	Passkey    string
	Token      string
	Namespaces []string
}

func FromDomainUser

func FromDomainUser(u user.User) User

Jump to

Keyboard shortcuts

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