Documentation ¶
Index ¶
- func Done() tea.Msg
- func Subscribe(obs Observable, handler HandlerFunc) rx.Subscription
- func SubscribeMessage(obs Observable, handler MessageFunc) rx.Subscription
- func SubscribeTotal(obs Observable, handler TotalFunc) rx.Subscription
- type DoneMsg
- type Event
- type File
- type Func
- type HandlerFunc
- type MessageEvent
- type MessageFunc
- type MessageObservable
- type Model
- type Observable
- type ProgressMsg
- type Reader
- type State
- type Subject
- type TotalEvent
- type TotalFunc
- type TotalObservable
- type Writer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Subscribe ¶
func Subscribe(obs Observable, handler HandlerFunc) rx.Subscription
func SubscribeMessage ¶ added in v0.0.33
func SubscribeMessage(obs Observable, handler MessageFunc) rx.Subscription
func SubscribeTotal ¶ added in v0.0.33
func SubscribeTotal(obs Observable, handler TotalFunc) rx.Subscription
Types ¶
type Event ¶
type Event struct { MessageEvent TotalEvent }
func (Event) ProgressMsg ¶ added in v0.0.33
func (e Event) ProgressMsg() ProgressMsg
type HandlerFunc ¶ added in v0.0.33
func ChannelHandler ¶ added in v0.0.33
func ChannelHandler(stream chan<- *Event, errs chan<- error) HandlerFunc
func Lift ¶ added in v0.0.33
func Lift[F Func](fn F) HandlerFunc
func TeaHandler ¶ added in v0.0.33
func TeaHandler(prog *tea.Program) HandlerFunc
func (HandlerFunc) OnComplete ¶ added in v0.0.33
func (fn HandlerFunc) OnComplete()
OnComplete implements rx.Observer.
func (HandlerFunc) OnError ¶ added in v0.0.33
func (fn HandlerFunc) OnError(err error)
OnError implements rx.Observer.
func (HandlerFunc) OnNext ¶ added in v0.0.33
func (fn HandlerFunc) OnNext(e Event)
OnNext implements rx.Observer.
func (HandlerFunc) SubscribeTo ¶ added in v0.0.33
func (fn HandlerFunc) SubscribeTo(obs Observable) rx.Subscription
type MessageEvent ¶ added in v0.0.33
type MessageEvent struct {
Message string
}
type MessageFunc ¶ added in v0.0.33
func (MessageFunc) Handler ¶ added in v0.0.33
func (fn MessageFunc) Handler() HandlerFunc
func (MessageFunc) OnComplete ¶ added in v0.0.33
func (fn MessageFunc) OnComplete()
OnComplete implements rx.Observer.
func (MessageFunc) OnError ¶ added in v0.0.33
func (fn MessageFunc) OnError(err error)
OnError implements rx.Observer.
func (MessageFunc) OnNext ¶ added in v0.0.33
func (fn MessageFunc) OnNext(e Event)
OnNext implements rx.Observer.
func (MessageFunc) SubscribeTo ¶ added in v0.0.33
func (fn MessageFunc) SubscribeTo(obs Observable) rx.Subscription
type MessageObservable ¶ added in v0.0.33
type MessageObservable interface { rx.Observable[string] }
type Model ¶ added in v0.0.33
type Model struct {
// contains filtered or unexported fields
}
type Observable ¶
type Observable interface { rx.Observable[Event] }
type ProgressMsg ¶ added in v0.0.33
type ProgressMsg float64
func ToMsg ¶ added in v0.0.33
func ToMsg(e *Event) ProgressMsg
type Reader ¶
type Reader interface { Observable io.Reader }
type State ¶ added in v0.0.33
type State interface {
Advance(int) TotalEvent
}
type Subject ¶ added in v0.0.33
func NewSubject ¶ added in v0.0.33
type TotalEvent ¶ added in v0.0.33
func (TotalEvent) Percent ¶ added in v0.0.33
func (e TotalEvent) Percent() float64
type TotalFunc ¶ added in v0.0.33
func (TotalFunc) Handler ¶ added in v0.0.33
func (fn TotalFunc) Handler() HandlerFunc
func (TotalFunc) OnComplete ¶ added in v0.0.33
func (TotalFunc) OnComplete()
OnComplete implements rx.Observer.
func (TotalFunc) SubscribeTo ¶ added in v0.0.33
func (fn TotalFunc) SubscribeTo(obs Observable) rx.Subscription
type TotalObservable ¶ added in v0.0.33
type TotalObservable interface { rx.Observable[float64] }
Click to show internal directories.
Click to hide internal directories.