Documentation ¶
Index ¶
- Constants
- type Group
- type Organization
- func (o *Organization) Create() error
- func (o *Organization) CreateGroup(name string) (*Group, error)
- func (o *Organization) GetGroup(name string) (*Group, error)
- func (o *Organization) GetUser(handle string) (*User, error)
- func (o *Organization) NewUser() *User
- func (g *Organization) Store() error
- func (o *Organization) Users() ([]*User, error)
- func (o *Organization) Validate() error
- type User
Constants ¶
View Source
const ( PW_SALT_LEN = 32 PW_KEY_KEN = 32 )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Group ¶
type Group struct { db.Record Name string Users []string Properties []string Organization string // contains filtered or unexported fields }
func (*Group) AddProperties ¶
func (*Group) GetPrimaryKey ¶
func (*Group) RemoveProperties ¶
func (*Group) RemoveUsers ¶
type Organization ¶
func NewOrg ¶
func NewOrg(db db.DB) *Organization
func (*Organization) Create ¶
func (o *Organization) Create() error
func (*Organization) CreateGroup ¶
func (o *Organization) CreateGroup(name string) (*Group, error)
func (*Organization) NewUser ¶
func (o *Organization) NewUser() *User
func (*Organization) Store ¶
func (g *Organization) Store() error
func (*Organization) Users ¶
func (o *Organization) Users() ([]*User, error)
func (*Organization) Validate ¶
func (o *Organization) Validate() error
type User ¶
type User struct { db.Record Handle string Email []string Name string Password []byte Organization string `db:"indexed"` }
func (*User) CheckPassword ¶
func (*User) GetPrimaryKey ¶
func (*User) SetPassword ¶
Click to show internal directories.
Click to hide internal directories.