router

package
v0.4.3 Latest Latest
Warning

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

Go to latest
Published: Feb 1, 2026 License: MIT Imports: 3 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ActionInterface

type ActionInterface interface {
	Handle(packet *roc.Packet, serializer serializer.SerializerInterface) (any, exception.ExceptionInterface)
}

type SimpleRouter

type SimpleRouter struct {
	Routes map[string]ActionInterface
}

func NewSimpleRouter

func NewSimpleRouter() *SimpleRouter

func (*SimpleRouter) Add

func (r *SimpleRouter) Add(path string, action ActionInterface)

Jump to

Keyboard shortcuts

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