osc

package module
v0.0.0-...-c6349ec Latest Latest
Warning

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

Go to latest
Published: Apr 1, 2019 License: MIT Imports: 8 Imported by: 0

README

OSC package for Go


Documentation: GoDoc

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Arguments

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

func NewArguments

func NewArguments() *Arguments

func (*Arguments) AddASCIICharacter

func (args *Arguments) AddASCIICharacter(v rune) *Arguments

func (*Arguments) AddArray

func (args *Arguments) AddArray(v *Arguments) *Arguments

func (*Arguments) AddBlob

func (args *Arguments) AddBlob(v []byte) *Arguments

func (*Arguments) AddBoolean

func (args *Arguments) AddBoolean(v bool) *Arguments

func (*Arguments) AddFloat32

func (args *Arguments) AddFloat32(v float32) *Arguments

func (*Arguments) AddFloat64

func (args *Arguments) AddFloat64(v float64) *Arguments

func (*Arguments) AddImpulse

func (args *Arguments) AddImpulse() *Arguments

func (*Arguments) AddInt32

func (args *Arguments) AddInt32(v int32) *Arguments

func (*Arguments) AddInt64

func (args *Arguments) AddInt64(v int64) *Arguments

func (*Arguments) AddMIDI

func (args *Arguments) AddMIDI(portID byte, statusByte byte, data1 byte, data2 byte) *Arguments

func (*Arguments) AddNil

func (args *Arguments) AddNil() *Arguments

func (*Arguments) AddRGBAColor

func (args *Arguments) AddRGBAColor(r uint8, g uint8, b uint8, a uint8) *Arguments

func (*Arguments) AddString

func (args *Arguments) AddString(v string) *Arguments

func (*Arguments) AddSymbol

func (args *Arguments) AddSymbol(v string) *Arguments

func (*Arguments) AddTimeTag

func (args *Arguments) AddTimeTag(v time.Time) *Arguments

func (*Arguments) Clear

func (args *Arguments) Clear() *Arguments

func (*Arguments) DataBinary

func (args *Arguments) DataBinary() []byte

func (*Arguments) TypeTags

func (args *Arguments) TypeTags() []byte

type Bundle

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

func NewBundle

func NewBundle() *Bundle

func (*Bundle) AddElements

func (bnd *Bundle) AddElements(elements ...Packet) *Bundle

func (*Bundle) Clear

func (bnd *Bundle) Clear() *Bundle

func (*Bundle) Elements

func (bnd *Bundle) Elements() []Packet

func (*Bundle) MarshalBinary

func (bnd *Bundle) MarshalBinary() ([]byte, error)

func (*Bundle) SetTimeTag

func (bnd *Bundle) SetTimeTag(v time.Time) *Bundle

func (*Bundle) TimeTag

func (bnd *Bundle) TimeTag() time.Time

type Client

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

func NewClient

func NewClient() *Client

func (*Client) Address

func (c *Client) Address() string

func (*Client) Close

func (c *Client) Close() error

func (*Client) Connect

func (c *Client) Connect(network string, address string) error

func (*Client) Send

func (c *Client) Send(packet Packet) (int, error)

type Message

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

func NewMessage

func NewMessage() *Message

func (*Message) Address

func (msg *Message) Address() string

func (*Message) Arguments

func (msg *Message) Arguments() *Arguments

func (*Message) Clear

func (msg *Message) Clear() *Message

func (*Message) MarshalBinary

func (msg *Message) MarshalBinary() ([]byte, error)

func (*Message) SetAddress

func (msg *Message) SetAddress(address string) *Message

func (*Message) SetArguments

func (msg *Message) SetArguments(args *Arguments) *Message

type Packet

type Packet interface {
	encoding.BinaryMarshaler
	// contains filtered or unexported methods
}

Jump to

Keyboard shortcuts

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