router

package
v0.0.0-...-c8dbcfe Latest Latest
Warning

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

Go to latest
Published: May 31, 2023 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

Functions

This section is empty.

Types

type IRouter

type IRouter interface {
	Register(app *gin.Engine) error
	Prefixes() []string
}

type Router

type Router struct {
	Auth           auth.Auther
	CasbinEnforcer *casbin.SyncedEnforcer
	LoginAPI       *api.LoginAPI
	MenuAPI        *api.MenuAPI
	RoleAPI        *api.RoleAPI
	MemberAPI      *api.MemberAPI
	DomainAPI      *api.DomainAPI
	UserAPI        *api.UserAPI
	UsertagAPI     *api.UsertagAPI
	AgentConfigAPI *api.AgentConfigAPI
	AgentAPI       *api.AgentAPI
	OrderAPI       *api.OrderAPI

} // end

func (*Router) GetAllPolicies

func (a *Router) GetAllPolicies(c *gin.Context)

func (*Router) Prefixes

func (a *Router) Prefixes() []string

func (*Router) Register

func (a *Router) Register(app *gin.Engine) error

func (*Router) RegisterAPI

func (a *Router) RegisterAPI(app *gin.Engine)

RegisterAPI register api group router

Jump to

Keyboard shortcuts

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