{"modulePath":"github.com/code-hex/vegeta","version":"v0.0.0-20171211100919-03e7feb4ed88","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package vegeta\n\n## Variables\n\n```go\nvar (\n\tLogDir  = \"log\"\n\tLogName = \"vegeta_log\"\n)\n```\n\n## Functions\n\n```go\nfunc AddTag() echo.HandlerFunc\n```\n\n```go\nfunc Admin() echo.HandlerFunc\n```\n\n```go\nfunc Asset(name string) ([]byte, error)\n```\nAsset 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.\n\n```go\nfunc AssetDir(name string) ([]string, error)\n```\nAssetDir 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:\n\n\tdata/\n\t  foo.txt\n\t  img/\n\t    a.png\n\t    b.png\n\nthen 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\"}.\n\n```go\nfunc AssetInfo(name string) (os.FileInfo, error)\n```\nAssetInfo 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.\n\n```go\nfunc AssetNames() []string\n```\nAssetNames returns the names of the assets.\n\n```go\nfunc Auth() echo.HandlerFunc\n```\n\n```go\nfunc DeleteTag() echo.HandlerFunc\n```\nPublic JSON API\n\n```go\nfunc GetDataList() echo.HandlerFunc\n```\n\n```go\nfunc GetTagList() echo.HandlerFunc\n```\n\n```go\nfunc Index() echo.HandlerFunc\n```\n\n```go\nfunc JSONCreateUser() echo.HandlerFunc\n```\n\n```go\nfunc JSONDeleteUser() echo.HandlerFunc\n```\n\n```go\nfunc JSONEditUser() echo.HandlerFunc\n```\n\n```go\nfunc JSONTagsData() echo.HandlerFunc\n```\n\n```go\nfunc Login() echo.HandlerFunc\n```\n\n```go\nfunc Logout() echo.HandlerFunc\n```\n\n```go\nfunc MustAsset(name string) []byte\n```\nMustAsset is like Asset but panics when Asset would return an error. It simplifies safe initialization of global variables.\n\n```go\nfunc MyPage() echo.HandlerFunc\n```\n\n```go\nfunc PostData() echo.HandlerFunc\n```\n\n```go\nfunc PostTag() echo.HandlerFunc\n```\n\n```go\nfunc ReRegisterPassword() echo.HandlerFunc\n```\n\n```go\nfunc RegenerateToken() echo.HandlerFunc\n```\n\n```go\nfunc RestoreAsset(dir, name string) error\n```\nRestoreAsset restores an asset under the given directory\n\n```go\nfunc RestoreAssets(dir, name string) error\n```\nRestoreAssets restores an asset under the given directory recursively\n\n```go\nfunc Settings() echo.HandlerFunc\n```\n\n```go\nfunc UnwrapErrors(err error) (int, error)\n```\nUnwrapErrors get important message from wrapped error message\n\n## Types\n\n```go\ntype Context struct {\n\techo.Context\n\tDB  *gorm.DB\n\tZap *zap.Logger\n}\n```\n\n```go\nfunc (c *Context) BindValidate(i interface{}) error\n```\n\n```go\nfunc (c *Context) CreateAPIToken(username string) (string, error)\n```\n\n```go\nfunc (c *Context) GetUserStatus() html.Args\n```\n\n```go\ntype Options struct {\n\tHelp    bool `short:\"h\" long:\"help\" description:\"show this message\"`\n\tVersion bool `short:\"v\" long:\"version\" description:\"print the version\"`\n\n\tPort       int  `short:\"p\" long:\"port\" description:\"specify the port number\" default:\"3000\"`\n\tMigrate    bool `long:\"migrate\" description:\"migrate mysql for this program\"`\n\tStackTrace bool `long:\"trace\" description:\"display detail error messages\"`\n}\n```\nOptions struct for parse command line arguments\n\n```go\ntype Validator struct {\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc (v *Validator) Validate(i interface{}) error\n```\n\n```go\ntype Vegeta struct {\n\tOptions\n\t*echo.Echo\n\t*zap.Logger\n\tDB *gorm.DB\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc New() *Vegeta\n```\n\n```go\nfunc (v *Vegeta) ErrorHandler(err error, c echo.Context)\n```\n\n```go\nfunc (v *Vegeta) LogHandler() echo.MiddlewareFunc\n```\n\n```go\nfunc (v *Vegeta) NewContext(ctx echo.Context) (*Context, error)\n```\n\n```go\nfunc (v *Vegeta) Run() int\n```\n\n","path":"github.com/code-hex/vegeta","name":"vegeta","synopsis":"","isRedistributable":true}
