stream

package
v1.10.6 Latest Latest
Warning

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

Go to latest
Published: Sep 19, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Msg

type Msg int
const (
	ConnectingMsg Msg = iota
	ConnectedMsg
	BackprocessingMsg
	StreamingMsg
	InterruptStreamMsg
	EndOfStreamMsg
	ReplayedMsg
)

type ReplayBundle

type ReplayBundle []any

type ResponseUnknownMsg

type ResponseUnknownMsg string

type Status added in v1.1.9

type Status int
const (
	StatusRunning Status = 0
	StatusError   Status = 1
	StatusStopped Status = 2
)

type Stream

type Stream struct {
	ReplayBundle ReplayBundle
	// contains filtered or unexported fields
}

func New

func New(req *pbsubstreamsrpc.Request, client pbsubstreamsrpc.StreamClient, headers map[string]string, callOpts []grpc.CallOption) *Stream

func (*Stream) Init

func (s *Stream) Init() tea.Cmd

func (*Stream) StartStream

func (s *Stream) StartStream() tea.Msg

func (*Stream) StreamStatus added in v1.1.9

func (s *Stream) StreamStatus() Status

func (*Stream) TargetParallelProcessingBlock

func (s *Stream) TargetParallelProcessingBlock() uint64

func (*Stream) Update

func (s *Stream) Update(msg tea.Msg) tea.Cmd

type StreamErrorMsg

type StreamErrorMsg error

Jump to

Keyboard shortcuts

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