rm

package
v0.3.18 Latest Latest
Warning

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

Go to latest
Published: Dec 15, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var IrisRouterMap = make(map[string]Router)

Functions

func AddRouter

func AddRouter(grp RouterGrp, party router.Party, method HttpMethod, path, description string, saveOp bool, handlers ...context.Handler) *router.Route

func GetRouterList added in v0.3.8

func GetRouterList() []string

func GetRouterSelectOptions

func GetRouterSelectOptions() interface{}

func InitRouter added in v0.3.9

func InitRouter(r iris.Party)

Types

type HttpMethod

type HttpMethod int
const (
	GET HttpMethod = iota + 1
	POST
	PUT
	DELETE
)

type Router

type Router struct {
	Path        string `json:"path"`
	Description string `json:"description"`
	SaveOp      bool   `json:"saveOp"`
}

type RouterGrp

type RouterGrp struct {
	Description string `json:"description"`
}

func BuildGrp

func BuildGrp(name, description string) (RouterGrp, router.Party)

Jump to

Keyboard shortcuts

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