streaming

package
v0.2.49 Latest Latest
Warning

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

Go to latest
Published: Feb 13, 2026 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Publisher

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

Publisher fan-outs stream events to conversation-scoped subscribers.

func NewPublisher

func NewPublisher() *Publisher

NewPublisher creates a new stream publisher.

func (*Publisher) Publish

Publish implements modelcallctx.StreamPublisher.

func (*Publisher) Subscribe

func (p *Publisher) Subscribe(convID string) (<-chan *modelcallctx.StreamEvent, func())

Subscribe returns a channel that receives events for the conversation.

Jump to

Keyboard shortcuts

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