flux

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Jul 28, 2019 License: Apache-2.0 Imports: 7 Imported by: 13

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Flux

type Flux interface {
	rx.Publisher
	Filter(rx.FnPredicate) Flux
	DoOnError(rx.FnOnError) Flux
	DoOnNext(rx.FnOnNext) Flux
	DoOnComplete(rx.FnOnComplete) Flux
	DoFinally(rx.FnFinally) Flux
	DoOnRequest(rx.FnOnRequest) Flux
	DoOnSubscribe(rx.FnOnSubscribe) Flux
	SwitchOnFirst(FnSwitchOnFirst) Flux
	SubscribeOn(scheduler.Scheduler) Flux
	Raw() flux.Flux
	BlockLast(context.Context) (payload.Payload, error)
}

func Clone

func Clone(source rx.Publisher) Flux

func Create

func Create(gen func(ctx context.Context, s Sink)) Flux

func Empty

func Empty() Flux

func Just

func Just(payloads ...payload.Payload) Flux

func Raw

func Raw(input flux.Flux) Flux

type FnSwitchOnFirst

type FnSwitchOnFirst = func(s Signal, f Flux) Flux

type Processor

type Processor interface {
	Sink
	Flux
}

func CreateProcessor

func CreateProcessor() Processor

type Signal

type Signal interface {
	Value() (payload.Payload, bool)
	Type() rx.SignalType
}

type Sink

type Sink interface {
	Next(v payload.Payload)
	Complete()
	Error(e error)
}

Jump to

Keyboard shortcuts

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