dispatcher

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Jul 31, 2023 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Dispatcher

type Dispatcher struct {
	// contains filtered or unexported fields
}

func NewDispatcher

func NewDispatcher(publisher MessagePublisher) *Dispatcher

func (*Dispatcher) Start

func (d *Dispatcher) Start(ctx context.Context, operation uimodels.Operation)

type DispatcherContext

type DispatcherContext struct {
	Publisher MessagePublisher
}

func (DispatcherContext) Input

func (dc DispatcherContext) Input(prompt string, onDone uimodels.Operation)

func (DispatcherContext) Message

func (dc DispatcherContext) Message(msg string)

func (DispatcherContext) Messagef

func (dc DispatcherContext) Messagef(format string, args ...interface{})

func (DispatcherContext) Send

func (dc DispatcherContext) Send(teaMessage tea.Msg)

type MessagePublisher

type MessagePublisher interface {
	Send(msg tea.Msg)
}

Jump to

Keyboard shortcuts

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