kid

package module
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: May 22, 2022 License: Apache-2.0 Imports: 4 Imported by: 0

README

kid

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Context

type Context struct {
	*gin.Context
}

type HandleFunc

type HandleFunc func(*Context) interface{}

type Kid

type Kid struct {
	*gin.Engine
	*RouterGroup
	// contains filtered or unexported fields
}

func New

func New() *Kid

func (*Kid) Launch

func (kid *Kid) Launch(hosts ...string)

func (*Kid) Registry

func (kid *Kid) Registry(plugins ...plugin.Plugin) *Kid

Registry 将插件注入容器

type RouterGroup

type RouterGroup struct {
	*gin.RouterGroup
}

func (*RouterGroup) DELETE

func (group *RouterGroup) DELETE(path string, handleFunc ...HandleFunc)

func (*RouterGroup) GET

func (group *RouterGroup) GET(path string, handleFunc ...HandleFunc)

func (*RouterGroup) Group

func (group *RouterGroup) Group(path string, handlers ...HandleFunc) *RouterGroup

func (*RouterGroup) POST

func (group *RouterGroup) POST(path string, handlers ...HandleFunc)

func (*RouterGroup) PUT

func (group *RouterGroup) PUT(path string, handleFunc ...HandleFunc)

func (*RouterGroup) Use

func (group *RouterGroup) Use(middlewares ...HandleFunc)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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