Registry / utility / go-diodes

go-diodes

JSON →
library0.0.0-20260526122959-0284fcb5ac88gogounverified

Go-diodes provides ring buffer data structures for high-performance, lock-free communication between goroutines.

go get code.cloudfoundry.org/go-diodes
INSTALL
IMPORT
SIG · GO-DIODES
G
go-diodes
utilitygov0.0.0-20260526122959-0284fcb5ac88
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

diodes
code.cloudfoundry.org/go-diodes

Create a one-to-one diode ring buffer and read/write data.

import "code.cloudfoundry.org/go-diodes" buf := diodes.NewPoller(diodes.NewOneToOne(1024, diodes.AlertFunc(func(missed int) { fmt.Printf("Missed %d writes\n", missed) }))) buf.Set([]byte("hello")) data, _ := buf.Next() fmt.Println(string(data))
Debug
Known issues

No known issues recorded.

Upgrade
Version history
0.0.0-20260526122959-0284fcb5ac88latest on pkg.go.dev
Audit
Dependencies

No dependency data recorded yet.

Agent activity
4 hits · last 30 days
node
4
Resources
go-diodes — go get go-diodes · libregistry