controllers

package
v0.0.0-...-7d79363 Latest Latest
Warning

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

Go to latest
Published: Aug 14, 2015 License: Apache-2.0 Imports: 14 Imported by: 0

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

View Source
const (
	HASHCOST = 8
)

Variables

This section is empty.

Functions

func Deploy

func Deploy(p *models.Project) error

Deploy pushes the project to a dokku server

func Rebuild

func Rebuild(p *models.Page) error

Rebuild takes a new saved page object and rebuilds the project with ne updted conent

func ServeSite

func ServeSite(ctx *context.Context)

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) Get

func (c *MainController) Get()

Get takes you home baby

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 Resource

type Resource struct {
	Key   string
	Value string
	Image string
}

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()

Jump to

Keyboard shortcuts

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