VRCOSC

package module
v0.0.0-...-86a01a7 Latest Latest
Warning

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

Go to latest
Published: Dec 30, 2024 License: GPL-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ForwardDispatcher

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

func (*ForwardDispatcher) Dispatch

func (f *ForwardDispatcher) Dispatch(p osc.Packet)

type HandlerGroup

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

func (*HandlerGroup) AddParamsHandler

func (g *HandlerGroup) AddParamsHandler(params string, handler osc.HandlerFunc) error

func (*HandlerGroup) AddPathHandler

func (g *HandlerGroup) AddPathHandler(path string, handler osc.HandlerFunc) error

type MiddlewareFunc

type MiddlewareFunc func(m *osc.Message) (break1 bool)

type Options

type Options struct {
	Logger            *log.Logger
	Host              string
	SendPort          int
	RecvPort          int
	EnableForward     bool
	ForwardListenHost string
	ForwardSendPort   int
	ForwardRecvPort   int
}

type VRCOsc

type VRCOsc struct {
	EnableForward bool
	// contains filtered or unexported fields
}

func New

func New(o *Options) *VRCOsc

func (*VRCOsc) AddParamsHandler

func (v *VRCOsc) AddParamsHandler(params string, handler osc.HandlerFunc) error

func (*VRCOsc) AddPathHandler

func (v *VRCOsc) AddPathHandler(path string, handler osc.HandlerFunc) error

func (*VRCOsc) ChatBoxInput

func (v *VRCOsc) ChatBoxInput(s string, b, n bool) (err error)

func (*VRCOsc) HandlerGroup

func (v *VRCOsc) HandlerGroup(path string, middleware ...MiddlewareFunc) *HandlerGroup

func (*VRCOsc) Run

func (v *VRCOsc) Run() error

func (*VRCOsc) SendRaw

func (v *VRCOsc) SendRaw(packet osc.Packet) error

Jump to

Keyboard shortcuts

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