install

package
v1.2.2 Latest Latest
Warning

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

Go to latest
Published: Sep 8, 2017 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Create

func Create(ctx *macaron.Context)

func Store

func Store(ctx *macaron.Context, form InstallForm) string

安装

Types

type InstallForm

type InstallForm struct {
	DbType               string `binding:"In(mysql)"`
	DbHost               string `binding:"Required;MaxSize(50)"`
	DbPort               int    `binding:"Required;Range(1,65535)"`
	DbUsername           string `binding:"Required;MaxSize(50)"`
	DbPassword           string `binding:"Required;MaxSize(30)"`
	DbName               string `binding:"Required;MaxSize(50)"`
	DbTablePrefix        string `binding:"MaxSize(20)"`
	AdminUsername        string `binding:"Required;MinSize(3)"`
	AdminPassword        string `binding:"Required;MinSize(6)"`
	ConfirmAdminPassword string `binding:"Required;MinSize(6)"`
	AdminEmail           string `binding:"Required;Email;MaxSize(50)"`
}

func (InstallForm) Error

func (f InstallForm) Error(ctx *macaron.Context, errs binding.Errors)

Jump to

Keyboard shortcuts

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