adapters

package
v0.0.0-...-2b928f8 Latest Latest
Warning

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

Go to latest
Published: Dec 8, 2024 License: LGPL-2.1 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FiberRouter

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

func NewFiberRouter

func NewFiberRouter(app *fiber.App) *FiberRouter

func (*FiberRouter) Group

func (r *FiberRouter) Group(prefix string) RouterGroup

func (*FiberRouter) Run

func (r *FiberRouter) Run(address string) error

type FiberRouterGroup

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

func (*FiberRouterGroup) GET

func (g *FiberRouterGroup) GET(path string, handler func(http.ResponseWriter, *http.Request))

func (*FiberRouterGroup) POST

func (g *FiberRouterGroup) POST(path string, handler func(http.ResponseWriter, *http.Request))

type GinRouter

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

func NewGinRouter

func NewGinRouter(engine *gin.Engine) *GinRouter

func (*GinRouter) Group

func (r *GinRouter) Group(prefix string) RouterGroup

func (*GinRouter) Run

func (r *GinRouter) Run(address string) error

type GinRouterGroup

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

func (*GinRouterGroup) GET

func (g *GinRouterGroup) GET(path string, handler func(http.ResponseWriter, *http.Request))

func (*GinRouterGroup) POST

func (g *GinRouterGroup) POST(path string, handler func(http.ResponseWriter, *http.Request))

type Router

type Router interface {
	Group(prefix string) RouterGroup
	Run(addr string) error
}

type RouterGroup

type RouterGroup interface {
	GET(path string, handler func(http.ResponseWriter, *http.Request))
	POST(path string, handler func(http.ResponseWriter, *http.Request))
}

Jump to

Keyboard shortcuts

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