eventlistener

package
v0.167.1 Latest Latest
Warning

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

Go to latest
Published: Aug 12, 2026 License: Apache-2.0 Imports: 2 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Service

type Service struct{}

Service is the shared implementation of domain.ChatEventListener used by every handler/service that needs to keep pumping a Bubble Tea channel.

func NewService

func NewService() *Service

NewService returns a new event listener service.

func (*Service) ListenForChatEvents

func (s *Service) ListenForChatEvents(eventChan <-chan domain.ChatEvent) tea.Cmd

ListenForChatEvents returns a tea.Cmd that reads one event off the chat event channel and surfaces it as the next tea.Msg. A closed channel terminates the listener (returns nil).

func (*Service) ListenForEvents

func (s *Service) ListenForEvents(eventChan <-chan tea.Msg) tea.Cmd

ListenForEvents is the tea.Msg variant of ListenForChatEvents, used for non-chat channels (bash output, tool progress).

Jump to

Keyboard shortcuts

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