Documentation ¶
Index ¶
- func AllSitenames(db *mgo.Database) ([]string, error)
- func DeleteSite(db *mgo.Database, inp map[string][]string) error
- func Ignite(session *mgo.Session, db *mgo.Database, boots_opt map[string]interface{}, ...) (sitename string, err error)
- func Install(session *mgo.Session, db *mgo.Database, id bson.ObjectId) error
- func SiteCount(db *mgo.Database) (int, error)
- func StartAll(db *mgo.Database, boots_opt map[string]interface{}) error
- func Uninstall(db *mgo.Database, id bson.ObjectId) error
- type SiteInfo
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DeleteSite ¶
Currently we wonly delete a site from the sites collection of the root database, for safety reasons. The deletion will only take effect at next restart.
func Ignite ¶
func Ignite(session *mgo.Session, db *mgo.Database, boots_opt map[string]interface{}, inp map[string][]string) (sitename string, err error)
This registers the site into the sites collection, creates a database for it, and registers an admin for it with the password coming from user interface. Also writes the site into the proxy table and starts the http server for the new site.
Types ¶
Click to show internal directories.
Click to hide internal directories.