Documentation
¶
Index ¶
- Constants
- func AnyToStringArray(array ...any) []string
- func FixAny(args ...any) []any
- func StringArrayToAny(array ...string) []any
- type ArgsX32
- type Aux
- type Auxes
- type Bus
- type Buses
- type ChData
- type Channel
- type Channels
- type Info
- type Matrices
- type Matrix
- type Message
- func (m *Message) CacheStale() bool
- func (m *Message) DetermineType() string
- func (m *Message) GetIndexOptions() []string
- func (m *Message) GetType() string
- func (m *Message) GetValueBool() bool
- func (m *Message) GetValueFloat() float64
- func (m *Message) GetValueInt() int64
- func (m *Message) GetValueString() string
- func (m *Message) IsBinary() bool
- func (m *Message) IsBinaryMap() bool
- func (m *Message) IsIndex() bool
- func (m *Message) IsMomentary() bool
- func (m *Message) IsSwitch() bool
- func (m *Message) Process() error
- type MessageHandlerFunc
- type MessageMap
- type Messages
- type Scene
- type Scenes
- type X32
- func (x *X32) AuxCount() []int
- func (x *X32) BusCount() []int
- func (x *X32) CacheRead() error
- func (x *X32) CacheRemove() error
- func (x *X32) CacheWrite() error
- func (x *X32) Call(address string, args ...any) *Message
- func (x *X32) ChannelCount() []int
- func (x *X32) CheckCache() bool
- func (x *X32) Connect() error
- func (x *X32) Emit(address string, args ...any) error
- func (x *X32) EmitId() error
- func (x *X32) EmitInfo() error
- func (x *X32) EmitNode() error
- func (x *X32) EmitShowDump() error
- func (x *X32) EmitStatus() error
- func (x *X32) EmitXinfo() error
- func (x *X32) Get(address string, wait bool) *Message
- func (x *X32) GetAllInfo() error
- func (x *X32) GetAux(i int) MessageMap
- func (x *X32) GetBus(i int) MessageMap
- func (x *X32) GetCacheDir() string
- func (x *X32) GetCacheTimeout() time.Duration
- func (x *X32) GetChannel(i int) MessageMap
- func (x *X32) GetDeskName() *Message
- func (x *X32) GetId() *Message
- func (x *X32) GetInfo() *Message
- func (x *X32) GetMatrix(i int) MessageMap
- func (x *X32) GetMessage(address string) *Message
- func (x *X32) GetNode() *Message
- func (x *X32) GetScene(i int) Scene
- func (x *X32) GetScenes() Scenes
- func (x *X32) GetShowDump() *Message
- func (x *X32) GetStatus() *Message
- func (x *X32) GetTopic(msg *gosc.Message) string
- func (x *X32) GetXinfo() *Message
- func (x *X32) ListEndpoints() error
- func (x *X32) MatrixCount() []int
- func (x *X32) MessageExists(address string) bool
- func (x *X32) MessageSeenBefore(address string) bool
- func (x *X32) Output(endpoint api.EndPoint, table *output.Table, graphFilter string) error
- func (x *X32) OutputTable(table *output.Table) error
- func (x *X32) Process(msg *gosc.Message, toX32 bool) *Message
- func (x *X32) Set(address string, value any) error
- func (x *X32) SetCacheDir(basedir string) error
- func (x *X32) SetCacheTimeout(duration time.Duration)
- func (x *X32) SetConfigDir(basedir string) error
- func (x *X32) SetMessageHandler(fn MessageHandlerFunc) error
- func (x *X32) StartMeters(meters ...string) error
- func (x *X32) StopMeters(meters ...string) error
- func (x *X32) UpdateCache(msg *Message) *Message
- func (x *X32) XremoteSender()
Constants ¶
View Source
const ( DefaultCacheTimeout = time.Minute * 5 DefaultPort = "10023" )
View Source
const CmdId = "/-prefs/??????"
View Source
const CmdInfo = "/info"
View Source
const CmdNode = "/node"
View Source
const CmdShowDump = "/showdump"
View Source
const CmdStatus = "/status"
View Source
const CmdXinfo = "/xinfo"
Variables ¶
This section is empty.
Functions ¶
func AnyToStringArray ¶
func StringArrayToAny ¶
Types ¶
type ChData ¶
type ChData struct {
Name string `json:"name"`
Colour string `json:"colour"`
Icon string `json:"icon"`
Mute bool `json:"mute"`
Solo bool `json:"solo"`
Source string `json:"source"`
Gain float64 `json:"gain"`
Trim float64 `json:"trim"`
Phantom bool `json:"phantom"`
Phantom2 bool `json:"phantom2"`
Selected bool `json:"selected"`
Fader float64 `json:"fader"`
}
type Info ¶
func CreateInfo ¶
type Message ¶
type Message struct {
Name string `json:"name"`
SeenBefore bool `json:"seen_before"`
LastSeen time.Time `json:"last_seen"`
Counter int `json:"counter"`
Type string `json:"type"`
Error error `json:"-"`
*gosc.Message `json:"Message"`
UnitValueMap api.UnitValueMap
X32Value any
Point *api.Point
}
func (*Message) CacheStale ¶
func (*Message) DetermineType ¶
func (*Message) GetIndexOptions ¶
func (*Message) GetValueBool ¶
func (*Message) GetValueFloat ¶
func (*Message) GetValueInt ¶
func (*Message) GetValueString ¶
func (*Message) IsBinaryMap ¶
func (*Message) IsMomentary ¶
type MessageHandlerFunc ¶
type MessageHandlerFunc func(msg *Message)
type MessageMap ¶
func (*MessageMap) Exists ¶
func (m *MessageMap) Exists(address string) bool
func (*MessageMap) Get ¶
func (m *MessageMap) Get(address string) *Message
func (*MessageMap) SeenBefore ¶
func (m *MessageMap) SeenBefore(address string) bool
type Scene ¶
type X32 ¶
type X32 struct {
Address string
Prefix string
Client *gosc.Client
Error error
NeedLogin bool
Debug bool
OutputType output.OutputType
Info Info
Points api.PointsMap
// contains filtered or unexported fields
}
func (*X32) CacheWrite ¶
CacheWrite Saves cache data to a file path.
func (*X32) ChannelCount ¶
func (*X32) CheckCache ¶
CheckCache Retrieves cache data from a local file.
func (*X32) EmitShowDump ¶
func (*X32) EmitStatus ¶
func (*X32) GetAllInfo ¶
func (*X32) GetAux ¶
func (x *X32) GetAux(i int) MessageMap
func (*X32) GetBus ¶
func (x *X32) GetBus(i int) MessageMap
func (*X32) GetCacheDir ¶
func (*X32) GetCacheTimeout ¶
func (*X32) GetChannel ¶
func (x *X32) GetChannel(i int) MessageMap
func (*X32) GetDeskName ¶
func (*X32) GetMatrix ¶
func (x *X32) GetMatrix(i int) MessageMap
func (*X32) GetMessage ¶
func (*X32) GetShowDump ¶
func (*X32) ListEndpoints ¶
func (*X32) MatrixCount ¶
func (*X32) MessageExists ¶
func (*X32) MessageSeenBefore ¶
func (*X32) SetCacheDir ¶
func (*X32) SetCacheTimeout ¶
func (*X32) SetConfigDir ¶
func (*X32) SetMessageHandler ¶
func (x *X32) SetMessageHandler(fn MessageHandlerFunc) error
func (*X32) StartMeters ¶
func (*X32) StopMeters ¶
func (*X32) UpdateCache ¶
func (*X32) XremoteSender ¶
func (x *X32) XremoteSender()
Source Files
¶
Directories
¶
| Path | Synopsis |
|---|---|
|
apiReflect
Package apiReflect - Snaffooed from https://github.com/fatih/structs
|
Package apiReflect - Snaffooed from https://github.com/fatih/structs |
|
nullEndPoint
Package nullEndPoint - This file is auto-generated from the update_all.sh script.
|
Package nullEndPoint - This file is auto-generated from the update_all.sh script. |
Click to show internal directories.
Click to hide internal directories.