Versions in this module Expand all Collapse all v1 v1.0.1 Mar 15, 2020 v1.0.0 Mar 15, 2020 Changes in this version + func CheckPartOf(src, part []string) + func CheckReduceOf(src, part []string) + func GetLastKey(keys []string) string + func KeysRange(keys []string, startKey string, endKey string) (start, end int, ok bool) + func MakeKeys(keySet map[string]struct{}) []string + func MakeKeysWithUnlimitedEnd(keySet map[string]struct{}) []string + func Max(a, b int) int + func MemsetInt(slice []int, v int) + func MemsetUint64(slice []uint64, v uint64) + func Min(a, b int) int + type Axis struct + Keys []string + ValuesList [][]uint64 + func CreateAxis(keys []string, valuesList [][]uint64) Axis + func CreateEmptyAxis(startKey, endKey string, valuesListLen int) Axis + func (axis *Axis) Divide(strategy Strategy, target int) Axis + func (axis *Axis) Focus(strategy Strategy, threshold uint64, ratio int, target int) Axis + func (axis *Axis) Range(startKey string, endKey string) Axis + func (axis *Axis) Shrink(ratio uint64) + type KeyMap struct + func (km *KeyMap) SaveKey(key *string) + func (km *KeyMap) SaveKeys(keys []string) + type Matrix struct + DataMap map[string][][]uint64 + KeyAxis []decorator.LabelKey + Keys []string + TimeAxis []int64 + func CreateMatrix(strategy Strategy, times []time.Time, keys []string, valuesListLen int) Matrix + func (mx *Matrix) Range(startKey, endKey string) + type NaiveLabelStrategy struct + func (s NaiveLabelStrategy) Background() + func (s NaiveLabelStrategy) CrossBorder(startKey, endKey string) bool + func (s NaiveLabelStrategy) Label(key string) decorator.LabelKey + type Plane struct + Axes []Axis + Times []time.Time + func CreateEmptyPlane(startTime, endTime time.Time, startKey, endKey string, valuesListLen int) Plane + func CreatePlane(times []time.Time, axes []Axis) Plane + func (plane *Plane) Compact(strategy Strategy) Axis + func (plane *Plane) Pixel(strategy Strategy, target int, displayTags []string) Matrix + type Strategy interface + func AverageStrategy(label decorator.LabelStrategy) Strategy + func DistanceStrategy(ctx context.Context, wg *sync.WaitGroup, label decorator.LabelStrategy, ...) Strategy