Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Node ¶
type Node struct {
// contains filtered or unexported fields
}
Node is a data structure, inspired by prefix tree, used for routing HTTP requests in the Event Gateway. It's used for creating tree structure of segments in HTTP paths. Each segments is stored in separate node.
func (*Node) AddRoute ¶
AddRoute adds route to the tree. This function will panic in case of adding conflicting parameterized paths. nolint: gocyclo
func (*Node) DeleteRoute ¶
DeleteRoute deletes route from the tree. This function will panic in case of removing non-existing node.
Click to show internal directories.
Click to hide internal directories.