Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Diff ¶
func Diff(want, got flux.TableIterator, opts ...DiffOption) string
Diff will perform a diff between two table iterators. This will sort the tables within the table iterators and produce a diff of the full output.
func Sort ¶
func Sort(tables flux.TableIterator) (flux.TableIterator, error)
Sort will read a TableIterator and produce another TableIterator where the keys are sorted.
This method will buffer all of the data since it needs to ensure all of the tables are read to avoid any deadlocks. Be careful using this method in performance sensitive areas.
Types ¶
type DiffOption ¶
type DiffOption interface {
// contains filtered or unexported methods
}
func DiffContext ¶
func DiffContext(n int) DiffOption
type ProfilerResult ¶ added in v0.82.0
type ProfilerResult struct {
// contains filtered or unexported fields
}
func NewProfilerResult ¶ added in v0.82.0
func NewProfilerResult(tables ...flux.Table) ProfilerResult
func (*ProfilerResult) Name ¶ added in v0.82.0
func (r *ProfilerResult) Name() string
func (*ProfilerResult) Tables ¶ added in v0.82.0
func (r *ProfilerResult) Tables() flux.TableIterator
Click to show internal directories.
Click to hide internal directories.