Versions in this module Expand all Collapse all v0 v0.0.2 Apr 12, 2023 v0.0.1 Apr 10, 2023 Changes in this version + type BaseRequest struct + ID int + JSONRPC string + Method string + type DSP struct + func (d *DSP) Control(ctx context.Context, name string) (float64, error) + func (d *DSP) DbToVolumeLevel(ctx context.Context, level float64) int + func (d *DSP) GetGenericGetStatusRequest(ctx context.Context) QSCGetStatusRequest + func (d *DSP) GetGenericSetStatusRequest(ctx context.Context) QSCSetStatusRequest + func (d *DSP) GetGenericStatusGetRequest(ctx context.Context) QSCStatusGetRequest + func (d *DSP) GetStatus(ctx context.Context) (QSCStatusGetResponse, error) + func (d *DSP) Healthy(ctx context.Context) error + func (d *DSP) Info(ctx context.Context) (interface{}, error) + func (d *DSP) Mutes(ctx context.Context, blocks []string) (map[string]bool, error) + func (d *DSP) SetControl(ctx context.Context, name string, value float64) error + func (d *DSP) SetMute(ctx context.Context, block string, mute bool) error + func (d *DSP) SetVolume(ctx context.Context, block string, volume int) error + func (d *DSP) VolToDb(ctx context.Context, level int) float64 + func (d *DSP) Volumes(ctx context.Context, blocks []string) (map[string]int, error) + type DeviceManager struct + DspList *sync.Map + Log *zap.Logger + LogLevel *zap.AtomicLevel + func (dm *DeviceManager) CreateDSP(addr string) *DSP + func (dm *DeviceManager) HandlerGetGeneric(ctx *gin.Context) + func (dm *DeviceManager) HandlerGetInfo(ctx *gin.Context) + func (dm *DeviceManager) HandlerGetVolume(ctx *gin.Context) + func (dm *DeviceManager) HandlerMute(ctx *gin.Context) + func (dm *DeviceManager) HandlerMuteStatus(ctx *gin.Context) + func (dm *DeviceManager) HandlerSetGeneric(ctx *gin.Context) + func (dm *DeviceManager) HandlerSetVolume(ctx *gin.Context) + func (dm *DeviceManager) HandlerUnMute(ctx *gin.Context) + func (dm *DeviceManager) RunHTTPServer(router *gin.Engine, port string) error + type Info struct + Hostname string + IPAddress string + ModelName string + RawState string + State string + StatusCode string + type Option interface + func WithDelay(t time.Duration) Option + func WithLogger(l *zap.Logger) Option + func WithTTL(t time.Duration) Option + type QSCGetStatusRequest struct + Params []string + type QSCGetStatusResponse struct + Result []QSCGetStatusResult + type QSCGetStatusResult struct + Name string + Position float64 + String string + Value float64 + type QSCSetStatusParams struct + Name string + Value float64 + type QSCSetStatusRequest struct + Params QSCSetStatusParams + type QSCSetStatusResponse struct + Result QSCGetStatusResult + type QSCStatusGetRequest struct + Params int + type QSCStatusGetResponse struct + Result QSCStatusGetResult + type QSCStatusGetResult struct + DesignCode string + DesignName string + IsEmulator bool + IsRedundant bool + Platform string + State string + Status struct{ ... } + type QSCStatusReport struct + JSONRPC string + Method string + Params struct{ ... }