router

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Mar 26, 2025 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(
	path string,
	children []proto.IRoutable,
) proto.IRouter

Types

type Router added in v0.5.6

type Router struct {
	Join func(string, ...string) (string, error)
	// contains filtered or unexported fields
}

func (*Router) AddChildren added in v0.7.0

func (self *Router) AddChildren(children []proto.IRoutable)

func (*Router) Children added in v0.7.0

func (self *Router) Children() []proto.IRoutable

func (*Router) DowncastHandler added in v0.7.0

func (self *Router) DowncastHandler() proto.IWrappedHandler

func (*Router) DowncastRouter added in v0.7.0

func (self *Router) DowncastRouter() proto.IRouter

func (*Router) IsRouter added in v0.7.0

func (self *Router) IsRouter() bool

func (*Router) Method added in v0.7.0

func (self *Router) Method() string

func (*Router) Path added in v0.7.0

func (self *Router) Path() types.PathPttrn

Jump to

Keyboard shortcuts

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