mono

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: 17

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsProcessor

func IsProcessor(m Mono) bool

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 Empty

func Empty() 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