Documentation
¶
Index ¶
- type AppAccess
- type AppPath
- type User
- func (this User) DbFetchOne(q *mgo.Query) (interface{}, error)
- func (this User) DbInsertOne(uc *mgo.Collection) (uu interface{}, er error)
- func (this User) DbReplaceOne(uc *mgo.Collection) (uu interface{}, er error)
- func (this User) DbUpdateOne(uc *mgo.Collection, sel bson.M, updates bson.M) (uu interface{}, er error)
- func (this User) IsAuth(AppToken string, accessLevel int8, url string) (User, error)
- func (this User) IsLogin(self *User, result *bool) error
- type Users
- func (this Users) DbFetchAll(q *mgo.Query) (interface{}, error)
- func (this Users) DbInsertAll(uc *mgo.Collection) (uu interface{}, er error)
- func (this Users) DbReplaceAll(uc *mgo.Collection) (uu interface{}, er error)
- func (this Users) DbUpdateAll(uc *mgo.Collection, sel bson.M, updates bson.M) (uu interface{}, er error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type User ¶
type User struct {
Id bson.ObjectId `bson:"_id,omitempty" json:"Id"`
Username string `bson:"Username" json:"Username"`
Password string `bson:"Password" json:"Password"`
Email string `bson:"Email" json:"Email"`
Name string `bson:"Name" json:"Name"`
TOC time.Time `bson:"TOC" json:"TOC"`
TTL int64 `bson:"TTL" json:"TTL"`
Accesses []AppAccess `bson:"AppAccess" json:"AppAccess"`
IsActive bool `bson:"IsActive" json:"IsActive"`
}
func (User) DbInsertOne ¶
func (this User) DbInsertOne(uc *mgo.Collection) (uu interface{}, er error)
func (User) DbReplaceOne ¶
func (this User) DbReplaceOne(uc *mgo.Collection) (uu interface{}, er error)
func (User) DbUpdateOne ¶
type Users ¶
type Users []User
func (Users) DbInsertAll ¶
func (this Users) DbInsertAll(uc *mgo.Collection) (uu interface{}, er error)
func (Users) DbReplaceAll ¶
func (this Users) DbReplaceAll(uc *mgo.Collection) (uu interface{}, er error)
func (Users) DbUpdateAll ¶
Click to show internal directories.
Click to hide internal directories.