router

package
v0.9.7 Latest Latest
Warning

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

Go to latest
Published: May 29, 2022 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Routable

type Routable interface {
	Route(e *echo.Echo) error
}

Routable is an interface for objects that can be routable.

type Router

type Router struct {
	*echo.Echo
}

Router is a object that can be dispatch a Router.

func New

func New(serverName string) (*Router, error)

New creates a new Router.

func (*Router) Attach

func (r *Router) Attach(d Routable) *Router

Attach attach a Routable to the Router.

func (*Router) Start added in v0.9.2

func (r *Router) Start(address string) error

Start starts the Router.

Jump to

Keyboard shortcuts

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