Documentation ¶
Index ¶
- func IsNil(a interface{}) bool
- type PathToTrieNode
- type PathTrie
- func (pt *PathTrie) Insert(computed string, url string, operation *openapi3.Operation, method string, ...) bool
- func (pt *PathTrie) InsertMerge(segments []string, urls []string, operations map[string]*openapi3.Operation, ...) (isNewPath bool)
- func (pt *PathTrie) Nodes() []*TrieNode
- func (pt *PathTrie) Print() string
- type TrieNode
- type ValueMergeFunc
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type PathToTrieNode ¶
type PathTrie ¶
type PathTrie struct { Trie PathToTrieNode PathSeparator string }
func (*PathTrie) InsertMerge ¶
type TrieNode ¶
type TrieNode struct { Children PathToTrieNode // Name of the path segment corresponding to this node. // E.g. if this node represents /v1/foo/bar, // the Name would be "bar" and the Path would be "/v1/foo/bar". Name string // Path includes the node's name and uniquely identifies the node in the tree. Path string // URL as it was. URL string // Value of the full path Value interface{} // Operation Operations map[string]*openapi3.Operation }
type ValueMergeFunc ¶
type ValueMergeFunc func(existing, newV *interface{})
Click to show internal directories.
Click to hide internal directories.