Documentation ¶
Overview ¶
Nging is a toolbox for webmasters Copyright (C) 2018-present Wenhui Shen <swh@admpub.com>
This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more details.
You should have received a copy of the GNU Affero General Public License along with this program. If not, see <https://www.gnu.org/licenses/>.
Index ¶
- Variables
- func AddonForm(ctx echo.Context) error
- func AddonIndex(ctx echo.Context) error
- func DeleteCaddyfileByID(id uint) error
- func Editable(fileName string) (string, bool)
- func Group(ctx echo.Context) error
- func GroupAdd(ctx echo.Context) error
- func GroupDelete(ctx echo.Context) error
- func GroupEdit(ctx echo.Context) error
- func Log(ctx echo.Context) error
- func LogShow(ctx echo.Context) error
- func ParseTailLine(line *tail.Line) (interface{}, error)
- func Playable(fileName string) (string, bool)
- func Restart(ctx echo.Context) error
- func Stop(ctx echo.Context) error
- func ValidAddonName(addon string) bool
- func VhostAdd(ctx echo.Context) error
- func VhostDelete(ctx echo.Context) error
- func VhostEdit(ctx echo.Context) error
- func VhostFile(ctx echo.Context) error
- func VhostIndex(ctx echo.Context) error
- func VhostLog(ctx echo.Context) error
- func Vhostbuild(ctx echo.Context) error
- type FormValues
- func (v FormValues) AddSlashes(val string) string
- func (v FormValues) AddonAttr(addon string, item string, defaults ...string) string
- func (v FormValues) GetAttrVal(addon string, item string, defaults ...string) string
- func (v FormValues) GetSlice(key string) param.StringSlice
- func (v FormValues) GetWebdavGlobal() []*webdav.WebdavPerm
- func (v FormValues) GetWebdavUser() []*webdav.WebdavUser
- func (v FormValues) Iterator(addon string, item string, prefix string, withQuotes ...bool) interface{}
- func (v FormValues) IteratorKV(addon string, item string, prefix string, withQuotes ...bool) interface{}
Constants ¶
This section is empty.
Variables ¶
true, Name: `网站管理`, Action: `caddy`, Icon: `sitemap`, Children: &navigate.List{ { Display: false, Name: `Caddy日志`, Action: `log_show`, }, { Display: true, Name: `网站列表`, Action: `vhost`, }, { Display: true, Name: `添加网站`, Action: `vhost_add`, Icon: `plus`, }, { Display: false, Name: `重启Caddy`, Action: `restart`, Icon: ``, }, { Display: false, Name: `停止Caddy`, Action: `stop`, Icon: ``, }, { Display: false, Name: `查看网站日志`, Action: `vhost_log`, }, { Display: false, Name: `查看网站动态`, Action: `log`, }, { Display: false, Name: `配置表单`, Action: `addon_form`, Icon: ``, }, { Display: false, Name: `修改网站`, Action: `vhost_edit`, Icon: ``, }, { Display: false, Name: `删除网站`, Action: `vhost_delete`, Icon: ``, }, { Display: false, Name: `管理网站文件`, Action: `vhost_file`, Icon: ``, }, { Display: false, Name: `生成Caddyfile`, Action: `vhost_build`, Icon: ``, }, { Display: true, Name: `分组管理`, Action: `group`, }, { Display: true, Name: `添加分组`, Action: `group_add`, Icon: `plus`, }, { Display: false, Name: `修改分组`, Action: `group_edit`, Icon: ``, }, { Display: false, Name: `删除分组`, Action: `group_delete`, Icon: ``, }, }, }Display:
Functions ¶
func AddonIndex ¶
func DeleteCaddyfileByID ¶
func GroupDelete ¶
func ParseTailLine ¶ added in v3.6.4
func ValidAddonName ¶
func VhostDelete ¶
func VhostIndex ¶
func Vhostbuild ¶
Types ¶
type FormValues ¶ added in v3.6.3
func NewFormValues ¶ added in v3.6.3
func NewFormValues(values url.Values) *FormValues
func (FormValues) AddSlashes ¶ added in v3.6.3
func (v FormValues) AddSlashes(val string) string
func (FormValues) AddonAttr ¶ added in v3.6.3
func (v FormValues) AddonAttr(addon string, item string, defaults ...string) string
func (FormValues) GetAttrVal ¶ added in v3.6.3
func (v FormValues) GetAttrVal(addon string, item string, defaults ...string) string
func (FormValues) GetSlice ¶ added in v3.6.3
func (v FormValues) GetSlice(key string) param.StringSlice
func (FormValues) GetWebdavGlobal ¶ added in v3.6.3
func (v FormValues) GetWebdavGlobal() []*webdav.WebdavPerm
func (FormValues) GetWebdavUser ¶ added in v3.6.3
func (v FormValues) GetWebdavUser() []*webdav.WebdavUser
func (FormValues) Iterator ¶ added in v3.6.3
func (v FormValues) Iterator(addon string, item string, prefix string, withQuotes ...bool) interface{}
func (FormValues) IteratorKV ¶ added in v3.6.3
func (v FormValues) IteratorKV(addon string, item string, prefix string, withQuotes ...bool) interface{}