Documentation ¶
Overview ¶
Copyright 2015 Geofrey Ernest a.k.a gernest, All Rights Reserved.
Licensed under the Apache License, Version 2.0 (the "License"): you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Index ¶
- Constants
- func Deploy(p *models.Project) error
- func Rebuild(p *models.Page) error
- func ServeSite(ctx *context.Context)
- type AccountController
- type AdminController
- type FilesController
- type LoraController
- type MainController
- type PageController
- type ProfileController
- type ProjectController
- type Resource
- type SectonController
- type SubSectionController
- type SubdomainController
Constants ¶
const (
HASHCOST = 8
)
Variables ¶
This section is empty.
Functions ¶
Types ¶
type AccountController ¶
type AccountController struct {
MainController
}
func (*AccountController) Index ¶
func (c *AccountController) Index()
func (*AccountController) Login ¶
func (c *AccountController) Login()
func (*AccountController) Logout ¶
func (c *AccountController) Logout()
func (*AccountController) Register ¶
func (c *AccountController) Register()
type AdminController ¶
type AdminController struct {
MainController
}
func (*AdminController) CreateAccounts ¶
func (c *AdminController) CreateAccounts()
func (*AdminController) DeleteAccounts ¶
func (c *AdminController) DeleteAccounts()
func (*AdminController) Index ¶
func (c *AdminController) Index()
func (*AdminController) UpdateAccounts ¶
func (c *AdminController) UpdateAccounts()
type FilesController ¶
type FilesController struct {
MainController
}
func (*FilesController) Upload ¶
func (f *FilesController) Upload()
type LoraController ¶
type LoraController struct {
MainController
}
func (*LoraController) Companies ¶
func (c *LoraController) Companies()
func (*LoraController) Contacts ¶
func (c *LoraController) Contacts()
func (*LoraController) Help ¶
func (c *LoraController) Help()
func (*LoraController) Legal ¶
func (c *LoraController) Legal()
func (*LoraController) Pricing ¶
func (c *LoraController) Pricing()
func (*LoraController) Services ¶
func (c *LoraController) Services()
func (*LoraController) Terms ¶
func (c *LoraController) Terms()
type MainController ¶
type MainController struct {
beego.Controller
}
MainController provides base methods for all lora controllers
func (*MainController) ActivateContent ¶
func (c *MainController) ActivateContent(view string) map[string]interface{}
ActivateContent makes it easy to add layout to templates, it also checks Session cookie if is set and do the initializing stuffs
func (*MainController) ActivateView ¶
func (c *MainController) ActivateView(view string)
func (*MainController) Notice ¶
func (c *MainController) Notice()
Notice this is an old school notice page
func (*MainController) SetNotice ¶
func (c *MainController) SetNotice()
SetNotice makes it easier to set flash notices
type PageController ¶
type PageController struct {
MainController
}
PageController Ironically the user is not allowed to create any new page
func (*PageController) Preview ¶
func (p *PageController) Preview()
func (*PageController) Update ¶
func (p *PageController) Update()
type ProfileController ¶
type ProfileController struct {
MainController
}
func (*ProfileController) Display ¶
func (p *ProfileController) Display()
func (*ProfileController) Edit ¶
func (p *ProfileController) Edit()
type ProjectController ¶
type ProjectController struct {
MainController
}
ProjectController for lora projects
func (*ProjectController) Deploy ¶
func (p *ProjectController) Deploy()
Deploy prepares and pushes the project to the cloud
func (*ProjectController) List ¶
func (p *ProjectController) List()
func (*ProjectController) NewProject ¶
func (p *ProjectController) NewProject()
NewProject Creates a new boilerplate hugo project and saves important data to database
func (*ProjectController) Preview ¶
func (p *ProjectController) Preview()
Preview redirects to the poject preview page, the pages are served as static files
func (*ProjectController) Remove ¶
func (p *ProjectController) Remove()
func (*ProjectController) Update ¶
func (p *ProjectController) Update()
Update provides a restful project update
type SectonController ¶
type SectonController struct {
MainController
}
func (*SectonController) Update ¶
func (s *SectonController) Update()
type SubSectionController ¶
type SubSectionController struct {
MainController
}
func (*SubSectionController) Update ¶
func (s *SubSectionController) Update()
type SubdomainController ¶
type SubdomainController struct {
beego.Controller
}
func (*SubdomainController) ServeSite ¶
func (s *SubdomainController) ServeSite()