Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Sampler ¶
type Sampler struct {
// contains filtered or unexported fields
}
Sampler is a type that reads JSON documents and generates a list of keypaths derived from what it sees.
It works by scanning JSON down to a certain depth, and tracking all keys that it traverses before bottoming out at a scalar value. If it encounters an array, it will traverse all items in the array transparently, however, it will skip arrays of arrays to prevent smashing the stack.
func New ¶
New creates a new sampler that will extract key paths down to maxDepth depth (<0) means no limit.
func (*Sampler) KeysAtThreshold ¶
Click to show internal directories.
Click to hide internal directories.