Documentation
¶
Index ¶
- type Client
- func (obj *Client) Add(group *gin.RouterGroup, value any)
- func (obj *Client) Group(relativePath string, handlers ...gin.HandlerFunc) *gin.RouterGroup
- func (obj *Client) Handle(httpMethod string, relativePath string, handlers ...gin.HandlerFunc) gin.IRoutes
- func (obj *Client) Run(addr ...string) error
- type HandlerFunc
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 (*Client) Group ¶
func (obj *Client) Group(relativePath string, handlers ...gin.HandlerFunc) *gin.RouterGroup
type HandlerFunc ¶
type HandlerFunc struct {
Method string
Path string //路径
Func gin.HandlerFunc //方法
}
Click to show internal directories.
Click to hide internal directories.