routes

package
v0.0.0-...-e7df039 Latest Latest
Warning

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

Go to latest
Published: Apr 30, 2022 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultRelativePath = "{_}"
)

Variables

View Source
var Instance = new(Container)

Functions

func Path

func Path(srv, ctl, act string) (interface{}, error)

Types

type AHC

type AHC gin.HandlersChain

type Container

type Container struct {
	M *M
	E *AHC
	// contains filtered or unexported fields
}

func (*Container) Engine

func (container *Container) Engine(r *gin.Engine)

func (*Container) Generate

func (container *Container) Generate()

func (*Container) Load

func (container *Container) Load() *Container

type Exp

type Exp struct {
	NoR gin.HandlerFunc
	NoM gin.HandlerFunc
}

type H

type H struct {
	Middleware *AHC
	Adapter    map[*I]*AHC
}

type I

type I []interface{}

func AiANY

func AiANY(relativePath, method interface{}) *I

func AiDELETE

func AiDELETE(relativePath string) *I

func AiGET

func AiGET(relativePath string) *I

func AiHEAD

func AiHEAD(relativePath string) *I

func AiOPTIONS

func AiOPTIONS(relativePath string) *I

func AiPATCH

func AiPATCH(relativePath string) *I

func AiPOST

func AiPOST(relativePath string) *I

func AiPUT

func AiPUT(relativePath string) *I

type M

type M map[string]*H

Jump to

Keyboard shortcuts

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