Documentation
¶
Index ¶
- type App
- func (this App) DbFetchOne(q *mgo.Query) (interface{}, error)
- func (this App) DbInsertOne(uc *mgo.Collection) (uu interface{}, er error)
- func (this App) DbReplaceOne(uc *mgo.Collection) (uu interface{}, er error)
- func (this App) DbUpdateOne(uc *mgo.Collection, sel bson.M, updates bson.M) (uu interface{}, er error)
- type Apps
- func (this Apps) DbFetchAll(q *mgo.Query) (interface{}, error)
- func (this Apps) DbInsertAll(uc *mgo.Collection) (uu interface{}, er error)
- func (this Apps) DbReplaceAll(uc *mgo.Collection) (uu interface{}, er error)
- func (this Apps) DbUpdateAll(uc *mgo.Collection, sel bson.M, updates bson.M) (uu interface{}, er error)
- type Path
- type Role
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type App ¶
type App struct {
Id bson.ObjectId `bson:"_id,omitempty" json:"Id"`
Name string `bson:"Name" json:"Name"`
Description string `bson:"Description" json:"Description"`
Token string `bson:"Token" json:"Token"`
TOC time.Time `bson:"TOC" json:"TOC"`
TTL int64 `bson:"TTL" json:"TTL"`
Roles []Role `bson:"Roles" json:"Roles"`
}
func (App) DbInsertOne ¶
func (this App) DbInsertOne(uc *mgo.Collection) (uu interface{}, er error)
func (App) DbReplaceOne ¶
func (this App) DbReplaceOne(uc *mgo.Collection) (uu interface{}, er error)
func (App) DbUpdateOne ¶
type Apps ¶
type Apps []App
func (Apps) DbInsertAll ¶
func (this Apps) DbInsertAll(uc *mgo.Collection) (uu interface{}, er error)
func (Apps) DbReplaceAll ¶
func (this Apps) DbReplaceAll(uc *mgo.Collection) (uu interface{}, er error)
func (Apps) DbUpdateAll ¶
Click to show internal directories.
Click to hide internal directories.