httpclient

package
v1.9.3 Latest Latest
Warning

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

Go to latest
Published: Aug 6, 2026 License: Apache-2.0 Imports: 5 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 {
	*client.Client
}

Client is a profile HTTP client that wraps the base HTTP client

func New

func New(url string, opts ...client.ClientOpt) (*Client, error)

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.AudioProfile) (*schema.AudioProfile, error)

func (*Client) DeleteAudioProfile

func (c *Client) DeleteAudioProfile(ctx context.Context, uuid string) (*schema.AudioProfile, error)

func (*Client) GetAudioProfile

func (c *Client) GetAudioProfile(ctx context.Context, uuid string) (*schema.AudioProfile, error)

func (*Client) GetCodec

func (c *Client) GetCodec(ctx context.Context, name string, req schema.CodecGetRequest) (*schema.Codec, error)

func (*Client) ListChannelLayouts

func (c *Client) ListChannelLayouts(ctx context.Context, req schema.ChannelLayoutListRequest) (*schema.ChannelLayoutList, error)

func (*Client) ListCodecs

func (c *Client) ListCodecs(ctx context.Context, req schema.CodecListRequest) (*schema.CodecList, error)

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.AudioProfile) (*schema.AudioProfile, error)

Jump to

Keyboard shortcuts

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