router

package
v0.0.0-...-ddd43b2 Latest Latest
Warning

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

Go to latest
Published: Mar 29, 2021 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterMetadata

func RegisterMetadata(group *gin.RouterGroup)

Types

type GinRouter

type GinRouter struct {
	Engine *gin.Engine
}

func NewGinRouter

func NewGinRouter(r *gin.Engine) *GinRouter

func (*GinRouter) Register

func (gr *GinRouter) Register()

func (*GinRouter) Run

func (gr *GinRouter) Run(addr ...string) error

func (*GinRouter) ServeHTTP

func (gr *GinRouter) ServeHTTP(w http.ResponseWriter, req *http.Request)

func (*GinRouter) Swagger

func (gr *GinRouter) Swagger()

type Router

type Router interface {
	http.Handler
	Register()
	Run(addr ...string) error
}

Jump to

Keyboard shortcuts

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