reducer

package
v1.4.4-alpha1202-loadi... Latest Latest
Warning

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

Go to latest
Published: Dec 2, 2025 License: AGPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ReduceFunction

type ReduceFunction func([]string) string

type Reducer

type Reducer struct {
	// contains filtered or unexported fields
}

Reducer is a struct that handles the reduction of memory size

func NewReducer

func NewReducer(reduceLimit int, handle ReduceFunction) *Reducer

func (*Reducer) Dump

func (r *Reducer) Dump() string

func (*Reducer) DumpAll

func (r *Reducer) DumpAll() string

func (*Reducer) GetData

func (r *Reducer) GetData() []string

func (*Reducer) Push

func (r *Reducer) Push(data string)

func (*Reducer) SetReduceFunction

func (r *Reducer) SetReduceFunction(handle ReduceFunction)

Jump to

Keyboard shortcuts

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