Debian Codegraph @

api/requests/sources/xx_generated.getspecialsources.go

raw symbols SCIP
1 // This file has been automatically generated. Don't edit it.
2
3 package sourcesscip-go gomod github.com/andreykaipov/goobs . `github.com/andreykaipov/goobs/api/requests/sources`/
4
5 import requestsscip-go gomod github.com/andreykaipov/goobs . `github.com/andreykaipov/goobs/api/requests`/ "github.com/andreykaipov/goobs/api/requestsscip-go gomod github.com/andreykaipov/goobs . `github.com/andreykaipov/goobs/api/requests`/"
6
7 /*
8 GetSpecialSourcesParams represents the params body for the "GetSpecialSources" request.
9 Get configured special sources like Desktop Audio and Mic/Aux sources.
10 Since 4.1.0.
11 */
12 type GetSpecialSourcesParamsscip-go gomod github.com/andreykaipov/goobs . `github.com/andreykaipov/goobs/api/requests/sources`/GetSpecialSourcesParams# struct {
13 requestsscip-go gomod github.com/andreykaipov/goobs . `github.com/andreykaipov/goobs/api/requests`/.ParamsBasicscip-go gomod github.com/andreykaipov/goobs . `github.com/andreykaipov/goobs/api/requests/sources`/GetSpecialSourcesParams#ParamsBasic.
14 }
15
16 // GetSelfName just returns "GetSpecialSources".
17 func (o *GetSpecialSourcesParamsscip-go gomod github.com/andreykaipov/goobs . `github.com/andreykaipov/goobs/api/requests/sources`/GetSpecialSourcesParams#) GetSelfNamescip-go gomod github.com/andreykaipov/goobs . `github.com/andreykaipov/goobs/api/requests/sources`/GetSpecialSourcesParams#GetSelfName().() string {
18 return "GetSpecialSources"
19 }
20
21 /*
22 GetSpecialSourcesResponse represents the response body for the "GetSpecialSources" request.
23 Get configured special sources like Desktop Audio and Mic/Aux sources.
24 Since v4.1.0.
25 */
26 type GetSpecialSourcesResponsescip-go gomod github.com/andreykaipov/goobs . `github.com/andreykaipov/goobs/api/requests/sources`/GetSpecialSourcesResponse# struct {
27 requestsscip-go gomod github.com/andreykaipov/goobs . `github.com/andreykaipov/goobs/api/requests`/.ResponseBasicscip-go gomod github.com/andreykaipov/goobs . `github.com/andreykaipov/goobs/api/requests/sources`/GetSpecialSourcesResponse#ResponseBasic.
28
29 // Name of the first Desktop Audio capture source.
30 Desktop1scip-go gomod github.com/andreykaipov/goobs . `github.com/andreykaipov/goobs/api/requests/sources`/GetSpecialSourcesResponse#Desktop1. string `json:"desktop-1,omitempty"`
31
32 // Name of the second Desktop Audio capture source.
33 Desktop2scip-go gomod github.com/andreykaipov/goobs . `github.com/andreykaipov/goobs/api/requests/sources`/GetSpecialSourcesResponse#Desktop2. string `json:"desktop-2,omitempty"`
34
35 // Name of the first Mic/Aux input source.
36 Mic1scip-go gomod github.com/andreykaipov/goobs . `github.com/andreykaipov/goobs/api/requests/sources`/GetSpecialSourcesResponse#Mic1. string `json:"mic-1,omitempty"`
37
38 // Name of the second Mic/Aux input source.
39 Mic2scip-go gomod github.com/andreykaipov/goobs . `github.com/andreykaipov/goobs/api/requests/sources`/GetSpecialSourcesResponse#Mic2. string `json:"mic-2,omitempty"`
40
41 // NAme of the third Mic/Aux input source.
42 Mic3scip-go gomod github.com/andreykaipov/goobs . `github.com/andreykaipov/goobs/api/requests/sources`/GetSpecialSourcesResponse#Mic3. string `json:"mic-3,omitempty"`
43 }
44
45 // GetSpecialSources sends the corresponding request to the connected OBS WebSockets server. Note the variadic arguments
46 // as this request doesn't require any parameters.
47 func (c *Clientscip-go gomod github.com/andreykaipov/goobs . `github.com/andreykaipov/goobs/api/requests/sources`/Client#) GetSpecialSourcesscip-go gomod github.com/andreykaipov/goobs . `github.com/andreykaipov/goobs/api/requests/sources`/Client#GetSpecialSources().(paramss ...*GetSpecialSourcesParamsscip-go gomod github.com/andreykaipov/goobs . `github.com/andreykaipov/goobs/api/requests/sources`/GetSpecialSourcesParams#) (*GetSpecialSourcesResponsescip-go gomod github.com/andreykaipov/goobs . `github.com/andreykaipov/goobs/api/requests/sources`/GetSpecialSourcesResponse#, error) {
48 if len(paramss) == 0 {
49 paramss = []*GetSpecialSourcesParamsscip-go gomod github.com/andreykaipov/goobs . `github.com/andreykaipov/goobs/api/requests/sources`/GetSpecialSourcesParams#{{}}
50 }
51 params := paramss[0]
52 data := &GetSpecialSourcesResponsescip-go gomod github.com/andreykaipov/goobs . `github.com/andreykaipov/goobs/api/requests/sources`/GetSpecialSourcesResponse#{}
53 if err := c.SendRequestscip-go gomod github.com/andreykaipov/goobs . `github.com/andreykaipov/goobs/api/requests`/Client#SendRequest().(params, data); err != nil {
54 return nil, err
55 }
56 return data, nil
57 }