sa

package
v0.0.0-...-2445833 Latest Latest
Warning

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

Go to latest
Published: Aug 21, 2022 License: GPL-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ReadDbData = func(done <-chan interface{},
	scriptStream <-chan excel.ScriptInfo) <-chan models.StatResult {
	readDbStream := make(chan models.StatResult)
	go func() {
		defer close(readDbStream)
		for i := range scriptStream {
			select {
			case <-done:
				return
			default:
				ProcessScriptInfo(i, readDbStream)
			}
		}
	}()
	return readDbStream
}
View Source
var ResultStatStream = func(done <-chan interface{},
	resultStream <-chan models.StatResult) <-chan float64 {
	doneStream := make(chan float64)
	go func() {
		defer close(doneStream)
		for result := range resultStream {
			select {
			case <-done:
				return
			case doneStream <- results.ProcResultsInfo(result):
			}
		}
	}()
	return doneStream
}

Functions

func ProcessScriptInfo

func ProcessScriptInfo(scriptInfo excel.ScriptInfo, resultStream chan<- models.StatResult) float64

Types

This section is empty.

Jump to

Keyboard shortcuts

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