Documentation ¶
Index ¶
- type Client
- func (c *Client) GetCurrentProfile(paramss ...*GetCurrentProfileParams) (*GetCurrentProfileResponse, error)
- func (c *Client) ListProfiles(paramss ...*ListProfilesParams) (*ListProfilesResponse, error)
- func (c *Client) SetCurrentProfile(params *SetCurrentProfileParams) (*SetCurrentProfileResponse, error)
- type GetCurrentProfileParams
- type GetCurrentProfileResponse
- type ListProfilesParams
- type ListProfilesResponse
- type SetCurrentProfileParams
- type SetCurrentProfileResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
Client represents a client for 'profiles' requests
func (*Client) GetCurrentProfile ¶
func (c *Client) GetCurrentProfile( paramss ...*GetCurrentProfileParams, ) (*GetCurrentProfileResponse, error)
GetCurrentProfile sends the corresponding request to the connected OBS WebSockets server. Note the variadic arguments as this request doesn't require any parameters.
func (*Client) ListProfiles ¶
func (c *Client) ListProfiles(paramss ...*ListProfilesParams) (*ListProfilesResponse, error)
ListProfiles sends the corresponding request to the connected OBS WebSockets server. Note the variadic arguments as this request doesn't require any parameters.
func (*Client) SetCurrentProfile ¶
func (c *Client) SetCurrentProfile( params *SetCurrentProfileParams, ) (*SetCurrentProfileResponse, error)
SetCurrentProfile sends the corresponding request to the connected OBS WebSockets server.
type GetCurrentProfileParams ¶
type GetCurrentProfileParams struct {
requests.ParamsBasic
}
GetCurrentProfileParams represents the params body for the "GetCurrentProfile" request. Get the name of the current profile.
Generated from https://github.com/Palakis/obs-websocket/blob/4.5.0/docs/generated/protocol.md#GetCurrentProfile.
func (*GetCurrentProfileParams) Name ¶
func (o *GetCurrentProfileParams) Name() string
Name just returns "GetCurrentProfile".
type GetCurrentProfileResponse ¶
type GetCurrentProfileResponse struct { requests.ResponseBasic // Name of the currently active profile. ProfileName string `json:"profile-name"` }
GetCurrentProfileResponse represents the response body for the "GetCurrentProfile" request. Get the name of the current profile.
Generated from https://github.com/Palakis/obs-websocket/blob/4.5.0/docs/generated/protocol.md#GetCurrentProfile.
type ListProfilesParams ¶
type ListProfilesParams struct {
requests.ParamsBasic
}
ListProfilesParams represents the params body for the "ListProfiles" request. Get a list of available profiles.
Generated from https://github.com/Palakis/obs-websocket/blob/4.5.0/docs/generated/protocol.md#ListProfiles.
func (*ListProfilesParams) Name ¶
func (o *ListProfilesParams) Name() string
Name just returns "ListProfiles".
type ListProfilesResponse ¶
type ListProfilesResponse struct { requests.ResponseBasic // List of available profiles. Profiles []map[string]interface{} `json:"profiles"` }
ListProfilesResponse represents the response body for the "ListProfiles" request. Get a list of available profiles.
Generated from https://github.com/Palakis/obs-websocket/blob/4.5.0/docs/generated/protocol.md#ListProfiles.
type SetCurrentProfileParams ¶
type SetCurrentProfileParams struct { requests.ParamsBasic // Name of the desired profile. ProfileName string `json:"profile-name"` }
SetCurrentProfileParams represents the params body for the "SetCurrentProfile" request. Set the currently active profile.
Generated from https://github.com/Palakis/obs-websocket/blob/4.5.0/docs/generated/protocol.md#SetCurrentProfile.
func (*SetCurrentProfileParams) Name ¶
func (o *SetCurrentProfileParams) Name() string
Name just returns "SetCurrentProfile".
type SetCurrentProfileResponse ¶
type SetCurrentProfileResponse struct {
requests.ResponseBasic
}
SetCurrentProfileResponse represents the response body for the "SetCurrentProfile" request. Set the currently active profile.
Generated from https://github.com/Palakis/obs-websocket/blob/4.5.0/docs/generated/protocol.md#SetCurrentProfile.