renderer

package
v0.0.0-...-de24375 Latest Latest
Warning

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

Go to latest
Published: Jul 11, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Model

type Model interface {
	tea.Model
	GetId() string
}

type Response

type Response struct {
	ID    string
	Value *v1beta1.Value
}

type Stream

type Stream interface {
	// Render renders the Model to the user. This method is blocking.
	// until the user has made a decision.
	Render(ctx context.Context, p Model) (*Response, error)
	RenderQueue() <-chan Model
	Respond(v *Response)
}

func NewStream

func NewStream() Stream

Jump to

Keyboard shortcuts

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