Documentation ¶
Index ¶
- type BaseRequest
- type DSP
- func (d *DSP) DbToVolumeLevel(ctx context.Context, level float64) int
- func (d *DSP) GetControlStatus(ctx context.Context, name string) (QSCGetStatusResponse, error)
- func (d *DSP) GetDetails(ctx context.Context) (structs.HardwareInfo, *nerr.E)
- 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) GetInfo(ctx context.Context) (interface{}, error)
- func (d *DSP) GetMutes(ctx context.Context, blocks []string) (map[string]bool, error)
- func (d *DSP) GetStatus(ctx context.Context) (QSCStatusGetResponse, error)
- func (d *DSP) GetVolumes(ctx context.Context, blocks []string) (map[string]int, error)
- func (d *DSP) SendCommand(ctx context.Context, request interface{}) ([]byte, error)
- func (d *DSP) SetControlStatus(ctx context.Context, name, value string) (QSCSetStatusResponse, 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
- type QSCGetStatusRequest
- type QSCGetStatusResponse
- type QSCGetStatusResult
- type QSCSetStatusParams
- type QSCSetStatusRequest
- type QSCSetStatusResponse
- type QSCStatusGetRequest
- type QSCStatusGetResponse
- type QSCStatusGetResult
- type QSCStatusReport
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BaseRequest ¶
type BaseRequest struct { JSONRPC string `json:"jsonrpc"` ID int `json:"id"` Method string `json:"method"` }
BaseRequest are the common parts of every qsc jsonrpc request
type DSP ¶
type DSP struct {
Address string
}
func (*DSP) GetControlStatus ¶
func (*DSP) GetDetails ¶
GetDetails is all the juicy details about the QSC that everyone is DYING to know about
func (*DSP) GetGenericGetStatusRequest ¶
func (d *DSP) GetGenericGetStatusRequest(ctx context.Context) QSCGetStatusRequest
func (*DSP) GetGenericSetStatusRequest ¶
func (d *DSP) GetGenericSetStatusRequest(ctx context.Context) QSCSetStatusRequest
func (*DSP) GetGenericStatusGetRequest ¶
func (d *DSP) GetGenericStatusGetRequest(ctx context.Context) QSCStatusGetRequest
GetGenericStatusGetRequest is used for retreiving EngineStatus and other information about the QSC
func (*DSP) GetStatus ¶
func (d *DSP) GetStatus(ctx context.Context) (QSCStatusGetResponse, error)
GetStatus will be getting responses for us I hope...
func (*DSP) GetVolumes ¶ added in v0.1.5
func (*DSP) SendCommand ¶
func (*DSP) SetControlStatus ¶
type QSCGetStatusRequest ¶
type QSCGetStatusRequest struct { BaseRequest Params []string `json:"params"` }
type QSCGetStatusResponse ¶
type QSCGetStatusResponse struct { BaseRequest Result []QSCGetStatusResult `json:"result"` }
type QSCGetStatusResult ¶
type QSCSetStatusParams ¶
QSCSetStatusParams is the parameters for the Control.Set method
type QSCSetStatusRequest ¶
type QSCSetStatusRequest struct { BaseRequest Params QSCSetStatusParams `json:"params"` }
type QSCSetStatusResponse ¶
type QSCSetStatusResponse struct { BaseRequest Result QSCGetStatusResult `json:"result"` }
type QSCStatusGetRequest ¶
type QSCStatusGetRequest struct { BaseRequest Params int `json:"params"` }
QSCStatusGetRequest is for the StatusGet method
type QSCStatusGetResponse ¶
type QSCStatusGetResponse struct { BaseRequest Result QSCStatusGetResult `json:"result"` }
QSCStatusGetResponse gets the JSON response after calling the StatusGet method
type QSCStatusGetResult ¶
QSCStatusGetResponse is the values that we are getting back from the StatusGet method
type QSCStatusReport ¶
type QSCStatusReport struct { JSONRPC string `json:"jsonrpc"` Method string `json:"method"` Params struct { Platform string `json:"Platform"` State string `json:"State"` DesignName string `json:"DesignName"` DesignCode string `json:"DesignCode"` IsRedundant bool `json:"IsRedundant"` IsEmulator bool `json:"IsEmulator"` Status struct { Code int `json:"Code"` String string `json:"String"` } `json:"Status"` } `json:"params"` }
Click to show internal directories.
Click to hide internal directories.