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)
Click to show internal directories.
Click to hide internal directories.