Versions in this module Expand all Collapse all v1 v1.11.2 Nov 21, 2022 Changes in this version + func NewSetWithFiltered(kvs []KeyValue, filter Filter) (Set, []KeyValue) + func NewSetWithSortableFiltered(kvs []KeyValue, tmp *Sortable, filter Filter) (Set, []KeyValue) + type Distinct struct + func (d Distinct) Valid() bool + type Encoder interface + Encode func(iterator Iterator) string + ID func() EncoderID + func DefaultEncoder() Encoder + type EncoderID struct + func NewEncoderID() EncoderID + func (id EncoderID) Valid() bool + type Filter func(KeyValue) bool + type Iterator struct + func (i *Iterator) Attribute() KeyValue + func (i *Iterator) IndexedAttribute() (int, KeyValue) + func (i *Iterator) IndexedLabel() (int, KeyValue) + func (i *Iterator) Label() KeyValue + func (i *Iterator) Len() int + func (i *Iterator) Next() bool + func (i *Iterator) ToSlice() []KeyValue + type Key string + func (k Key) Bool(v bool) KeyValue + func (k Key) BoolSlice(v []bool) KeyValue + func (k Key) Defined() bool + func (k Key) Float64(v float64) KeyValue + func (k Key) Float64Slice(v []float64) KeyValue + func (k Key) Int(v int) KeyValue + func (k Key) Int64(v int64) KeyValue + func (k Key) Int64Slice(v []int64) KeyValue + func (k Key) IntSlice(v []int) KeyValue + func (k Key) String(v string) KeyValue + func (k Key) StringSlice(v []string) KeyValue + type KeyValue struct + Key Key + Value Value + func Bool(k string, v bool) KeyValue + func BoolSlice(k string, v []bool) KeyValue + func Float64(k string, v float64) KeyValue + func Float64Slice(k string, v []float64) KeyValue + func Int(k string, v int) KeyValue + func Int64(k string, v int64) KeyValue + func Int64Slice(k string, v []int64) KeyValue + func IntSlice(k string, v []int) KeyValue + func String(k, v string) KeyValue + func StringSlice(k string, v []string) KeyValue + func Stringer(k string, v fmt.Stringer) KeyValue + func (kv KeyValue) Valid() bool + type MergeIterator struct + func NewMergeIterator(s1, s2 *Set) MergeIterator + func (m *MergeIterator) Attribute() KeyValue + func (m *MergeIterator) Label() KeyValue + func (m *MergeIterator) Next() bool + type Set struct + func EmptySet() *Set + func NewSet(kvs ...KeyValue) Set + func NewSetWithSortable(kvs []KeyValue, tmp *Sortable) Set + func (l *Set) Encoded(encoder Encoder) string + func (l *Set) Equals(o *Set) bool + func (l *Set) Equivalent() Distinct + func (l *Set) Filter(re Filter) (Set, []KeyValue) + func (l *Set) Get(idx int) (KeyValue, bool) + func (l *Set) HasValue(k Key) bool + func (l *Set) Iter() Iterator + func (l *Set) Len() int + func (l *Set) MarshalJSON() ([]byte, error) + func (l *Set) ToSlice() []KeyValue + func (l *Set) Value(k Key) (Value, bool) + func (l Set) MarshalLog() interface{} + type Sortable []KeyValue + func (l *Sortable) Len() int + func (l *Sortable) Less(i, j int) bool + func (l *Sortable) Swap(i, j int) + type Type int + const BOOL + const BOOLSLICE + const FLOAT64 + const FLOAT64SLICE + const INT64 + const INT64SLICE + const INVALID + const STRING + const STRINGSLICE + func (i Type) String() string + type Value struct + func BoolSliceValue(v []bool) Value + func BoolValue(v bool) Value + func Float64SliceValue(v []float64) Value + func Float64Value(v float64) Value + func Int64SliceValue(v []int64) Value + func Int64Value(v int64) Value + func IntSliceValue(v []int) Value + func IntValue(v int) Value + func StringSliceValue(v []string) Value + func StringValue(v string) Value + func (v Value) AsBool() bool + func (v Value) AsBoolSlice() []bool + func (v Value) AsFloat64() float64 + func (v Value) AsFloat64Slice() []float64 + func (v Value) AsInt64() int64 + func (v Value) AsInt64Slice() []int64 + func (v Value) AsInterface() interface{} + func (v Value) AsString() string + func (v Value) AsStringSlice() []string + func (v Value) Emit() string + func (v Value) MarshalJSON() ([]byte, error) + func (v Value) Type() Type