osc

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jan 21, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type KeyValueDispatcher added in v0.0.13

type KeyValueDispatcher struct {
	KeyValuePutter
	HandleError   func(error)
	HandleSuccess func(message osc.Message, k, v string)
}

KeyValueDispatcher extracts key value pairs from OSC Packets passes them to the KeyValuePutter. HandleError and HandleSuccess must be non-nil. Nil values for these fields will cause panics during use.

func (KeyValueDispatcher) Dispatch added in v0.0.13

func (d KeyValueDispatcher) Dispatch(packet osc.Packet)

Dispatch dispatches OSC Packet messages to the KeyValuePutter

type KeyValuePutter

type KeyValuePutter interface {
	Put(context.Context, string, string) error
}

KeyValuePutter puts a key and value string

Jump to

Keyboard shortcuts

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