output

package
v0.1.0-rc.7 Latest Latest
Warning

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

Go to latest
Published: Nov 14, 2026 License: MIT Imports: 3 Imported by: 1 module, 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

Overview

Package output retains bounded, named output streams shared by the workbench and extension workers. Idle reads and writes after warm-up do not allocate.

Index

Constants

View Source
const Capacity = 64 * 1024

Variables

This section is empty.

Functions

func WithStore

func WithStore(ctx context.Context, store *Store) context.Context

Types

type Channel

type Channel struct {
	Name string
	// contains filtered or unexported fields
}

func (*Channel) Clear

func (c *Channel) Clear()

func (*Channel) Snapshot

func (c *Channel) Snapshot() (string, uint64)

func (*Channel) Write

func (c *Channel) Write(p []byte) (int, error)

type Store

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

func FromContext

func FromContext(ctx context.Context) *Store

func (*Store) Channel

func (s *Store) Channel(name string) *Channel

func (*Store) Channels

func (s *Store) Channels(dst []*Channel) []*Channel

Channels reuses the caller's slice; channels have stable identity and order.

func (*Store) Revision

func (s *Store) Revision() uint64

func (*Store) SetWake

func (s *Store) SetWake(wake func())

Jump to

Keyboard shortcuts

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