mframe

package module
v1.3.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 8, 2023 License: MIT Imports: 10 Imported by: 0

README

mframe

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Contains

func Contains(value, substring string) bool

func EndsWith

func EndsWith(value, suffix string) bool

func Equals

func Equals(left, right interface{}) bool

func InCIDR

func InCIDR(value, cidr string) bool

func InList

func InList[v float64 | string, result bool](value v, list []v) result

func MajorThan

func MajorThan(left, right float64) bool

func MatchesRegExp

func MatchesRegExp(value, regExp string) bool

func StartsWith

func StartsWith(value, prefix string) bool

Types

type BooleansBTree

type BooleansBTree map[string]map[bool]map[uuid.UUID]bool

type DataFrame

type DataFrame struct {
	Data     map[uuid.UUID]Row
	Keys     KeysBTree
	Strings  StringsBTree
	Numerics NumericsBTree
	Booleans BooleansBTree
	ExpireAt ExpireAtBTree
	Locker   sync.RWMutex
	TTL      time.Duration
}

func (*DataFrame) Append

func (d *DataFrame) Append(df *DataFrame, key string)

func (*DataFrame) Average

func (d *DataFrame) Average(name, field string) *DataFrame

func (*DataFrame) CleanExpired

func (d *DataFrame) CleanExpired()

func (*DataFrame) Count

func (d *DataFrame) Count(name string) *DataFrame

func (*DataFrame) CountUnique

func (d *DataFrame) CountUnique(name, field string) *DataFrame

func (*DataFrame) Filter

func (d *DataFrame) Filter(operator, key string, value interface{}, options map[string]bool) *DataFrame

func (*DataFrame) FindFirstByKey added in v1.1.0

func (d *DataFrame) FindFirstByKey(key string) (uuid.UUID, string, interface{})

func (*DataFrame) Init

func (d *DataFrame) Init(ttl time.Duration)

func (*DataFrame) Insert

func (d *DataFrame) Insert(data map[string]interface{})

func (*DataFrame) Max

func (d *DataFrame) Max(name, field string) *DataFrame

func (*DataFrame) Median

func (d *DataFrame) Median(name, field string) *DataFrame

func (*DataFrame) Min

func (d *DataFrame) Min(name, field string) *DataFrame

func (*DataFrame) Mode

func (d *DataFrame) Mode(name, field string) *DataFrame

func (*DataFrame) RemoveElement added in v1.1.0

func (d *DataFrame) RemoveElement(id uuid.UUID)

func (*DataFrame) SliceOf

func (d *DataFrame) SliceOf(field string) ([]interface{}, error)

func (*DataFrame) SliceOfFloat64

func (d *DataFrame) SliceOfFloat64(field string) ([]float64, error)

func (*DataFrame) Stats

func (d *DataFrame) Stats(name string)

func (*DataFrame) Sum

func (d *DataFrame) Sum(name, field string) *DataFrame

func (*DataFrame) ToSlice

func (d *DataFrame) ToSlice() []map[string]interface{}

func (*DataFrame) Variance

func (d *DataFrame) Variance(name, field string) *DataFrame

type ExpireAtBTree

type ExpireAtBTree map[uuid.UUID]time.Time

type KeysBTree

type KeysBTree map[string]string

type NumericsBTree

type NumericsBTree map[string]map[float64]map[uuid.UUID]bool

type Row

type Row map[string]interface{}

type StringsBTree

type StringsBTree map[string]map[string]map[uuid.UUID]bool

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL