subscriber

package
v0.0.0-...-5d57ea5 Latest Latest
Warning

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

Go to latest
Published: Jan 13, 2025 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Overview

Implementation for cgo preamble functions

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrFailedNew  = errors.New("failed to create new subscriber")
	ErrRcvTimeout = errors.New("timed out")
	ErrRcvBadType = errors.New("receive could not handle type")
)

Functions

This section is empty.

Types

type DataType

type DataType = ecal.DataType

type Subscriber

type Subscriber struct {
	Messages chan any

	Deserialize func(unsafe.Pointer, int) any
	// contains filtered or unexported fields
}

func New

func New(topic string, datatype DataType) (*Subscriber, error)

func (*Subscriber) Delete

func (p *Subscriber) Delete()

func (*Subscriber) Receive

func (p *Subscriber) Receive(timeout time.Duration) ([]byte, error)

Receive a new message from the eCAL receive callback.

Jump to

Keyboard shortcuts

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