mono

package
v0.4.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ToChannel added in v0.3.1

func ToChannel(input Mono, ctx context.Context) (<-chan payload.Payload, <-chan error)

func ToChannelOnScheduler added in v0.3.1

func ToChannelOnScheduler(input Mono, ctx context.Context, scheduler scheduler.Scheduler) (<-chan payload.Payload, <-chan error)

Types

type Mono

type Mono interface {
	rx.Publisher
	Filter(rx.FnPredicate) Mono
	DoFinally(rx.FnFinally) Mono
	DoOnError(rx.FnOnError) Mono
	DoOnSuccess(rx.FnOnNext) Mono
	DoOnCancel(rx.FnOnCancel) Mono
	DoOnSubscribe(rx.FnOnSubscribe) Mono
	SubscribeOn(scheduler.Scheduler) Mono
	Block(context.Context) (payload.Payload, error)
	SwitchIfEmpty(alternative Mono) Mono
	Raw() mono.Mono
}

func Create

func Create(gen func(context.Context, Sink)) Mono

func CreateFromChannel added in v0.3.1

func CreateFromChannel(payloads <-chan payload.Payload, err <-chan error) Mono

func Empty

func Empty() Mono

func Error added in v0.3.1

func Error(err error) Mono

func Just

func Just(input payload.Payload) Mono

func JustOrEmpty

func JustOrEmpty(input payload.Payload) Mono

func Raw

func Raw(input mono.Mono) Mono

type Processor

type Processor interface {
	Sink
	Mono
}

func CreateProcessor

func CreateProcessor() Processor

type RawPublisher

type RawPublisher interface {
	SubscribeWith(context.Context, rx.Subscriber)
}

type Sink

type Sink interface {
	Success(payload.Payload)
	Error(error)
}

Jump to

Keyboard shortcuts

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