router

package
v0.0.0-...-b1b21d8 Latest Latest
Warning

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

Go to latest
Published: Oct 17, 2023 License: LGPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	// contains filtered or unexported fields
}

func NewClient

func NewClient() *Client

func (*Client) Add

func (obj *Client) Add(group *gin.RouterGroup, value any)

func (*Client) Group

func (obj *Client) Group(relativePath string, handlers ...gin.HandlerFunc) *gin.RouterGroup

func (*Client) Handle

func (obj *Client) Handle(httpMethod string, relativePath string, handlers ...gin.HandlerFunc) gin.IRoutes

func (*Client) Run

func (obj *Client) Run(addr ...string) error

type HandlerFunc

type HandlerFunc struct {
	Method string
	Path   string          //路径
	Func   gin.HandlerFunc //方法
}

Jump to

Keyboard shortcuts

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