Documentation ¶
Index ¶
- type Client
- func (c *Client) GetOutputInfo(params *GetOutputInfoParams) (*GetOutputInfoResponse, error)
- func (c *Client) ListOutputs(paramss ...*ListOutputsParams) (*ListOutputsResponse, error)
- func (c *Client) StartOutput(params *StartOutputParams) (*StartOutputResponse, error)
- func (c *Client) StopOutput(params *StopOutputParams) (*StopOutputResponse, error)
- type GetOutputInfoParams
- type GetOutputInfoResponse
- type ListOutputsParams
- type ListOutputsResponse
- type StartOutputParams
- type StartOutputResponse
- type StopOutputParams
- type StopOutputResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
Client represents a client for 'outputs' requests
func (*Client) GetOutputInfo ¶
func (c *Client) GetOutputInfo(params *GetOutputInfoParams) (*GetOutputInfoResponse, error)
GetOutputInfo sends the corresponding request to the connected OBS WebSockets server.
func (*Client) ListOutputs ¶
func (c *Client) ListOutputs(paramss ...*ListOutputsParams) (*ListOutputsResponse, error)
ListOutputs sends the corresponding request to the connected OBS WebSockets server. Note the variadic arguments as this request doesn't require any parameters.
func (*Client) StartOutput ¶
func (c *Client) StartOutput(params *StartOutputParams) (*StartOutputResponse, error)
StartOutput sends the corresponding request to the connected OBS WebSockets server.
func (*Client) StopOutput ¶
func (c *Client) StopOutput(params *StopOutputParams) (*StopOutputResponse, error)
StopOutput sends the corresponding request to the connected OBS WebSockets server.
type GetOutputInfoParams ¶
type GetOutputInfoParams struct { requests.ParamsBasic // Output name OutputName string `json:"outputName"` }
GetOutputInfoParams represents the params body for the "GetOutputInfo" request. Get information about a single output
Generated from https://github.com/Palakis/obs-websocket/blob/4.7.0/docs/generated/protocol.md#GetOutputInfo.
func (*GetOutputInfoParams) Name ¶
func (o *GetOutputInfoParams) Name() string
Name just returns "GetOutputInfo".
type GetOutputInfoResponse ¶
type GetOutputInfoResponse struct { requests.ResponseBasic // Output info OutputInfo []typedefs.Output `json:"outputInfo"` }
GetOutputInfoResponse represents the response body for the "GetOutputInfo" request. Get information about a single output
Generated from https://github.com/Palakis/obs-websocket/blob/4.7.0/docs/generated/protocol.md#GetOutputInfo.
type ListOutputsParams ¶
type ListOutputsParams struct {
requests.ParamsBasic
}
ListOutputsParams represents the params body for the "ListOutputs" request. List existing outputs
Generated from https://github.com/Palakis/obs-websocket/blob/4.7.0/docs/generated/protocol.md#ListOutputs.
func (*ListOutputsParams) Name ¶
func (o *ListOutputsParams) Name() string
Name just returns "ListOutputs".
type ListOutputsResponse ¶
type ListOutputsResponse struct { requests.ResponseBasic // Outputs list Outputs []typedefs.Output `json:"outputs"` }
ListOutputsResponse represents the response body for the "ListOutputs" request. List existing outputs
Generated from https://github.com/Palakis/obs-websocket/blob/4.7.0/docs/generated/protocol.md#ListOutputs.
type StartOutputParams ¶
type StartOutputParams struct { requests.ParamsBasic // Output name OutputName string `json:"outputName"` }
StartOutputParams represents the params body for the "StartOutput" request. Start an output
Generated from https://github.com/Palakis/obs-websocket/blob/4.7.0/docs/generated/protocol.md#StartOutput.
func (*StartOutputParams) Name ¶
func (o *StartOutputParams) Name() string
Name just returns "StartOutput".
type StartOutputResponse ¶
type StartOutputResponse struct {
requests.ResponseBasic
}
StartOutputResponse represents the response body for the "StartOutput" request. Start an output
Generated from https://github.com/Palakis/obs-websocket/blob/4.7.0/docs/generated/protocol.md#StartOutput.
type StopOutputParams ¶
type StopOutputParams struct { requests.ParamsBasic // Force stop (default: false) Force bool `json:"force"` // Output name OutputName string `json:"outputName"` }
StopOutputParams represents the params body for the "StopOutput" request. Stop an output
Generated from https://github.com/Palakis/obs-websocket/blob/4.7.0/docs/generated/protocol.md#StopOutput.
func (*StopOutputParams) Name ¶
func (o *StopOutputParams) Name() string
Name just returns "StopOutput".
type StopOutputResponse ¶
type StopOutputResponse struct {
requests.ResponseBasic
}
StopOutputResponse represents the response body for the "StopOutput" request. Stop an output
Generated from https://github.com/Palakis/obs-websocket/blob/4.7.0/docs/generated/protocol.md#StopOutput.