Documentation
¶
Index ¶
- type Client
- func (c *Client) CreateAudioProfile(ctx context.Context, req schema.AudioProfileMeta) (*schema.AudioProfile, error)
- func (c *Client) DeleteAudioProfile(ctx context.Context, uuid string) (*schema.AudioProfile, error)
- func (c *Client) GetAudioProfile(ctx context.Context, uuid string) (*schema.AudioProfile, error)
- func (c *Client) GetCodec(ctx context.Context, name string, req schema.CodecGetRequest) (*schema.Codec, error)
- func (c *Client) ListChannelLayouts(ctx context.Context, req schema.ChannelLayoutListRequest) (*schema.ChannelLayoutList, error)
- func (c *Client) ListCodecs(ctx context.Context, req schema.CodecListRequest) (*schema.CodecList, error)
- func (c *Client) ListContainerFormats(ctx context.Context, req schema.FormatListRequest) (*schema.FormatList, error)
- func (c *Client) ListDevices(ctx context.Context, req schema.DeviceListRequest) (*schema.DeviceList, error)
- func (c *Client) ListPixelFormats(ctx context.Context, req schema.PixelFormatListRequest) (*schema.PixelFormatList, error)
- func (c *Client) ListSampleFormats(ctx context.Context, req schema.SampleFormatListRequest) (*schema.SampleFormatList, error)
- func (c *Client) UpdateAudioProfile(ctx context.Context, uuid string, req schema.AudioProfileMeta) (*schema.AudioProfile, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
Client is a profile HTTP client that wraps the base HTTP client
func New ¶
New creates a new profile HTTP client with the given base URL and options. The url parameter should point to the profile API endpoint, e.g. "http://localhost:8080/api".
func (*Client) CreateAudioProfile ¶
func (c *Client) CreateAudioProfile(ctx context.Context, req schema.AudioProfileMeta) (*schema.AudioProfile, error)
func (*Client) DeleteAudioProfile ¶
func (*Client) GetAudioProfile ¶
func (*Client) ListChannelLayouts ¶
func (c *Client) ListChannelLayouts(ctx context.Context, req schema.ChannelLayoutListRequest) (*schema.ChannelLayoutList, error)
func (*Client) ListCodecs ¶
func (*Client) ListContainerFormats ¶
func (c *Client) ListContainerFormats(ctx context.Context, req schema.FormatListRequest) (*schema.FormatList, error)
func (*Client) ListDevices ¶
func (c *Client) ListDevices(ctx context.Context, req schema.DeviceListRequest) (*schema.DeviceList, error)
func (*Client) ListPixelFormats ¶
func (c *Client) ListPixelFormats(ctx context.Context, req schema.PixelFormatListRequest) (*schema.PixelFormatList, error)
func (*Client) ListSampleFormats ¶
func (c *Client) ListSampleFormats(ctx context.Context, req schema.SampleFormatListRequest) (*schema.SampleFormatList, error)
func (*Client) UpdateAudioProfile ¶
func (c *Client) UpdateAudioProfile(ctx context.Context, uuid string, req schema.AudioProfileMeta) (*schema.AudioProfile, error)
Click to show internal directories.
Click to hide internal directories.