Documentation ΒΆ
Index ΒΆ
Constants ΒΆ
View Source
const RequestInfinite = math.MaxInt32
Variables ΒΆ
View Source
var ErrCancelled = errors.New("subscriber has been cancelled")
Functions ΒΆ
This section is empty.
Types ΒΆ
type Disposable ΒΆ
type Disposable interface { // Dispose dispose current resource. Dispose() // IsDisposed returns true if it has been disposed. IsDisposed() bool }
Disposable is a disposable resource.
type FnOnCancel ΒΆ
type FnOnCancel = func()
type FnOnComplete ΒΆ
type FnOnComplete = func()
type FnOnFinally ΒΆ
type FnOnFinally = func(Signal)
type FnOnNext ΒΆ
type FnOnNext = func(s Subscription, v interface{})
type FnOnRequest ΒΆ
type FnOnRequest = func(int)
type FnOnSubscribe ΒΆ
type FnOnSubscribe = func(Subscription)
type Processor ΒΆ
type Processor interface { Publisher Subscriber }
type Publisher ΒΆ
type Publisher interface { RawPublisher Subscribe(context.Context, ...SubscriberOption) }
type RawPublisher ΒΆ added in v0.0.2
type RawPublisher interface {
SubscribeWith(context.Context, Subscriber)
}
type Subscriber ΒΆ
type Subscriber interface { OnComplete() OnError(error) OnNext(Subscription, interface{}) OnSubscribe(Subscription) }
func NewSubscriber ΒΆ
func NewSubscriber(opts ...SubscriberOption) Subscriber
type SubscriberOption ΒΆ
type SubscriberOption func(*subscriber)
func OnComplete ΒΆ
func OnComplete(onComplete FnOnComplete) SubscriberOption
func OnError ΒΆ
func OnError(onError FnOnError) SubscriberOption
func OnNext ΒΆ
func OnNext(onNext FnOnNext) SubscriberOption
func OnSubscribe ΒΆ
func OnSubscribe(onSubscribe FnOnSubscribe) SubscriberOption
type Subscription ΒΆ
type Subscription interface { Request(n int) Cancel() }
type Transformer ΒΆ
type Transformer func(interface{}) interface{}
Click to show internal directories.
Click to hide internal directories.