routers

package
v0.0.0-...-ea53bbc Latest Latest
Warning

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

Go to latest
Published: May 28, 2021 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BaseRouter

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

func (*BaseRouter) RegisterRoutes

func (B *BaseRouter) RegisterRoutes(engine interface{})

func (*BaseRouter) RunController

func (B *BaseRouter) RunController(context interface{}, controller controllers.Controller)

func (*BaseRouter) SetContainer

func (B *BaseRouter) SetContainer(container di.AppInterface)

type HTTPRouter

type HTTPRouter struct {
	BaseRouter
}

func (*HTTPRouter) RunController

func (B *HTTPRouter) RunController(context interface{}, controller controllers.Controller)

type Router

type Router interface {
	RegisterRoutes(interface{})
	SetContainer(container di.AppInterface)
	RunController(interface{}, controllers.Controller)
}

func NewWebSocketRouter

func NewWebSocketRouter(app di.AppInterface, engine ...*engine.Engine) Router

type WebSocketRouter

type WebSocketRouter struct {
	BaseRouter
}

func (WebSocketRouter) New

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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