broadcast

package
v0.0.0-...-f6902ab Latest Latest
Warning

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

Go to latest
Published: Nov 3, 2023 License: Apache-2.0 Imports: 4 Imported by: 6

Documentation

Index

Constants

This section is empty.

Variables

View Source
var BufferDescriptor = struct {
	tailIntentCounterOffset int32
	tailCounterOffset       int32
	latestCounterOffset     int32
	trailerLength           int32
}{
	0,
	util.SizeOfInt64,
	util.SizeOfInt64 * 2,
	util.CacheLineLength * 2,
}

Functions

This section is empty.

Types

type CopyReceiver

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

func NewCopyReceiver

func NewCopyReceiver(receiver *Receiver) *CopyReceiver

func (*CopyReceiver) Receive

func (bcast *CopyReceiver) Receive(handler Handler) int

type Handler

type Handler func(int32, *atomic.Buffer, int32, int32)

type Receiver

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

func NewReceiver

func NewReceiver(buffer *atomic.Buffer) (*Receiver, error)

func (*Receiver) GetLappedCount

func (recv *Receiver) GetLappedCount() int64

func (*Receiver) Validate

func (recv *Receiver) Validate() bool

Jump to

Keyboard shortcuts

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