profiles

package
v0.3.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 14, 2021 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	*requests.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.7.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.7.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.7.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.7.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.7.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.7.0/docs/generated/protocol.md#SetCurrentProfile.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL