menu

package
v0.0.0-...-3bc260b Latest Latest
Warning

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

Go to latest
Published: May 9, 2019 License: Apache-2.0 Imports: 2 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

View Source
var MainNodes = map[string][]MainNode{
	"/": []MainNode{
		MainNode{
			Text: "个人设置",
			Nodes: []Node{
				Node{
					URL:  "/my",
					Text: "个人信息",
				},
			},
		},
	},
	"user": []MainNode{
		MainNode{
			Text: "集群管理",
			Nodes: []Node{
				Node{
					URL:  "/user/cluster",
					Text: "集群列表",
				},
				Node{
					URL:  "/user/cluster/create",
					Text: "创建集群",
				},
			},
		},
	},
	"dev": []MainNode{
		MainNode{
			Text: "应用管理",
			Nodes: []Node{
				Node{
					URL:  "/dev/app",
					Text: "应用列表",
				},
				Node{
					URL:  "/dev/app/create",
					Text: "创建应用",
				},
			},
		},
	},
	"admin": []MainNode{
		MainNode{
			Text: "用户管理",
			Nodes: []Node{
				Node{
					URL:  "/admin/user",
					Text: "用户列表",
				},
			},
		},
		MainNode{
			Text: "应用管理",
			Nodes: []Node{
				Node{
					URL:  "/admin/app",
					Text: "应用列表",
				},
			},
		},
		MainNode{
			Text: "集群管理",
			Nodes: []Node{
				Node{
					URL:  "/admin/cluster",
					Text: "集群列表",
				},
			},
		},
	},
}

Functions

This section is empty.

Types

type MainNode

type MainNode struct {
	Text  string
	Nodes []Node
}

func GetMenu

func GetMenu(ctx *gin.Context) []MainNode

type Node

type Node struct {
	URL  string
	Text string
}

Jump to

Keyboard shortcuts

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