json32

package
v0.0.0-...-157c9c8 Latest Latest
Warning

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

Go to latest
Published: Apr 26, 2024 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewHandler

func NewHandler(in <-chan []byte, handler any) (bus.Listener, error)

NewHandler reads messages off the 'in' channel and sends them to the handler.

Types

type Receiver

type Receiver struct {
	*serialbus.Receiver
	TypeMap type32.TypeMap
	Out     <-chan interface{}
}

Receiver combines a serialbus.Receiver with a type32.TypeMap. It is setup to receive json serialized data with a type32 header.

func NewReceiver

func NewReceiver(in <-chan []byte) *Receiver

NewReceiver on the 'in' channel. It is setup to receive json serialized data with a type32 header.

type Sender

type Sender struct {
	type32.TypeMap
	*serialbus.Sender
}

Sender combines a type32.TypeMap and a serialbus.Sender. It is setup to send json serialized data with a type32 header.

func NewSender

func NewSender(out chan<- []byte) *Sender

NewSender that will write to 'out'. It is setup to use json.Serialize as the serializer.

Jump to

Keyboard shortcuts

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