Documentation ¶
Index ¶
- Variables
- func AddTag() echo.HandlerFunc
- func Admin() echo.HandlerFunc
- func Asset(name string) ([]byte, error)
- func AssetDir(name string) ([]string, error)
- func AssetInfo(name string) (os.FileInfo, error)
- func AssetNames() []string
- func Auth() echo.HandlerFunc
- func DeleteTag() echo.HandlerFunc
- func GetDataList() echo.HandlerFunc
- func GetTagList() echo.HandlerFunc
- func Index() echo.HandlerFunc
- func JSONCreateUser() echo.HandlerFunc
- func JSONDeleteUser() echo.HandlerFunc
- func JSONEditUser() echo.HandlerFunc
- func JSONTagsData() echo.HandlerFunc
- func Login() echo.HandlerFunc
- func Logout() echo.HandlerFunc
- func MustAsset(name string) []byte
- func MyPage() echo.HandlerFunc
- func PostData() echo.HandlerFunc
- func PostTag() echo.HandlerFunc
- func ReRegisterPassword() echo.HandlerFunc
- func RegenerateToken() echo.HandlerFunc
- func RestoreAsset(dir, name string) error
- func RestoreAssets(dir, name string) error
- func Settings() echo.HandlerFunc
- func UnwrapErrors(err error) (int, error)
- type Context
- type Options
- type Validator
- type Vegeta
Constants ¶
This section is empty.
Variables ¶
var ( LogDir = "log" LogName = "vegeta_log" )
Functions ¶
func AddTag ¶
func AddTag() echo.HandlerFunc
func Admin ¶
func Admin() echo.HandlerFunc
func Asset ¶
Asset loads and returns the asset for the given name. It returns an error if the asset could not be found or could not be loaded.
func AssetDir ¶
AssetDir returns the file names below a certain directory embedded in the file by go-bindata. For example if you run go-bindata on data/... and data contains the following hierarchy:
data/ foo.txt img/ a.png b.png
then AssetDir("data") would return []string{"foo.txt", "img"} AssetDir("data/img") would return []string{"a.png", "b.png"} AssetDir("foo.txt") and AssetDir("notexist") would return an error AssetDir("") will return []string{"data"}.
func AssetInfo ¶
AssetInfo loads and returns the asset info for the given name. It returns an error if the asset could not be found or could not be loaded.
func Auth ¶
func Auth() echo.HandlerFunc
func GetDataList ¶
func GetDataList() echo.HandlerFunc
func GetTagList ¶
func GetTagList() echo.HandlerFunc
func Index ¶
func Index() echo.HandlerFunc
func JSONCreateUser ¶
func JSONCreateUser() echo.HandlerFunc
func JSONDeleteUser ¶
func JSONDeleteUser() echo.HandlerFunc
func JSONEditUser ¶
func JSONEditUser() echo.HandlerFunc
func JSONTagsData ¶
func JSONTagsData() echo.HandlerFunc
func Login ¶
func Login() echo.HandlerFunc
func Logout ¶
func Logout() echo.HandlerFunc
func MustAsset ¶
MustAsset is like Asset but panics when Asset would return an error. It simplifies safe initialization of global variables.
func MyPage ¶
func MyPage() echo.HandlerFunc
func PostData ¶
func PostData() echo.HandlerFunc
func PostTag ¶
func PostTag() echo.HandlerFunc
func ReRegisterPassword ¶
func ReRegisterPassword() echo.HandlerFunc
func RegenerateToken ¶
func RegenerateToken() echo.HandlerFunc
func RestoreAsset ¶
RestoreAsset restores an asset under the given directory
func RestoreAssets ¶
RestoreAssets restores an asset under the given directory recursively
func Settings ¶
func Settings() echo.HandlerFunc
func UnwrapErrors ¶
UnwrapErrors get important message from wrapped error message
Types ¶
type Options ¶
type Options struct { Help bool `short:"h" long:"help" description:"show this message"` Version bool `short:"v" long:"version" description:"print the version"` Port int `short:"p" long:"port" description:"specify the port number" default:"3000"` Migrate bool `long:"migrate" description:"migrate mysql for this program"` StackTrace bool `long:"trace" description:"display detail error messages"` }
Options struct for parse command line arguments