gully

package
v0.0.0-...-b75766b Latest Latest
Warning

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

Go to latest
Published: Mar 23, 2015 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	GullyCollection = "gullys"
)

Variables

This section is empty.

Functions

func Delete

func Delete(dbConn *db.MConn, doc *utils.M) error

func GetAll

func GetAll(dbConn *db.MConn, user string, appName string, org string) *[]Gully

func Insert

func Insert(dbConn *db.MConn, gully *Gully) string

Types

type Gully

type Gully struct {
	db.BaseModel `bson:",inline"`
	User         string                 `json:"user" bson:"user"`
	Organization string                 `json:"org" bson:"org"`
	AppName      string                 `json:"app_name" bson:"app_name"`
	Data         map[string]interface{} `json:"data" bson:"data" required:"true"`
	Ident        string                 `json:"ident" bson:"ident" required:"true"`
}

func FindOne

func FindOne(dbConn *db.MConn, user string, appName string, org string, ident string) *Gully

func Get

func Get(dbConn *db.MConn, user string, appName string, org string, ident string) *Gully

func (*Gully) IsValid

func (self *Gully) IsValid(op_type int) bool

Jump to

Keyboard shortcuts

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