handler

package
v1.5.7 Latest Latest
Warning

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

Go to latest
Published: Jun 10, 2024 License: AGPL-3.0 Imports: 35 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var LeftNavigate = &navigate.Item{
	Display: true,
	Name:    `防火墙`,
	Action:  `firewall`,
	Icon:    `shield`,
	Children: &navigate.List{
		{
			Display: true,
			Name:    `静态规则`,
			Action:  `rule/static`,
		},
		{
			Display: false,
			Name:    `添加静态规则`,
			Action:  `rule/static_add`,
		},
		{
			Display: false,
			Name:    `修改静态规则`,
			Action:  `rule/static_edit`,
		},
		{
			Display: false,
			Name:    `应用静态规则`,
			Action:  `rule/static_apply`,
		},
		{
			Display: false,
			Name:    `临时封IP`,
			Action:  `rule/static_ban`,
		},
		{
			Display: false,
			Name:    `删除静态规则`,
			Action:  `rule/static_delete`,
		},
		{
			Display: true,
			Name:    `动态规则`,
			Action:  `rule/dynamic`,
		},
		{
			Display: false,
			Name:    `添加动态规则`,
			Action:  `rule/dynamic_add`,
		},
		{
			Display: false,
			Name:    `修改动态规则`,
			Action:  `rule/dynamic_edit`,
		},
		{
			Display: false,
			Name:    `删除动态规则`,
			Action:  `rule/dynamic_delete`,
		},
		{
			Display: false,
			Name:    `重启服务`,
			Action:  `service/restart`,
			Icon:    ``,
		},
		{
			Display: false,
			Name:    `关闭服务`,
			Action:  `service/stop`,
			Icon:    ``,
		},
		{
			Display: false,
			Name:    `查看动态`,
			Action:  `service/log`,
			Icon:    ``,
		},
	},
}

Functions

func Log added in v1.3.2

func Log(ctx echo.Context) error

func RegisterRoute

func RegisterRoute(r *route.Collection)

func Restart added in v1.3.2

func Restart(ctx echo.Context) error

func Stop added in v1.3.2

func Stop(ctx echo.Context) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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