Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateSite ¶
func CreateSite(user User, repository *github.Repository, template, domain string) error
func RegisterUser ¶
Types ¶
type CombinedSite ¶
type CombinedSite struct {
Repository githubapi.Repository
Site *Site
}
type Site ¶
type Site struct {
ID int64
Title string
Description string
GitHubURL string `orm:"unique"`
Template string
Version string
Domain string `orm:"unique"`
Analytics string
User *User `orm:"rel(fk)"`
Created time.Time `orm:"auto_now_add;type(datetime)"`
Updated time.Time `orm:"auto_now;type(datetime)"`
}
func SiteByOwner ¶
type Sites ¶
type Sites struct {
*github.Repositories
All []*CombinedSite
}
type Template ¶
type Template struct {
ID int64 `json:"-"`
Path string `json:"-",orm:"unique"`
BasePath string `json:"-",orm:"unique"`
Name string `json:"name",orm:"unique"`
Home string `json:"home"`
Description string `json:"description"`
}
func AllTemplates ¶
func AllTemplates() []*Template
func GetTemplate ¶
Click to show internal directories.
Click to hide internal directories.