reactive

package
v0.0.0-...-b631e0d Latest Latest
Warning

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

Go to latest
Published: Jun 11, 2018 License: MIT Imports: 4 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetWine

func GetWine() interface{}

GetWine returns an array of wines, ages, and ratings

Types

type Result

type Result struct {
	SumRating  float64
	NumSamples int
}

Result is used for aggregation

type Results

type Results map[int]Result

Results holds a list of results by age

func Exec

func Exec() (Results, <-chan subscription.Subscription)

Exec connects rxgo and returns our results side-effect + a subscription channel to block on at the end

type Wine

type Wine struct {
	Name   string
	Age    int
	Rating float64 // 1-5
}

Wine represents a bottle of wine and is our input stream

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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