httpclient

package
v1.11.0 Latest Latest
Warning

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

Go to latest
Published: Oct 24, 2026 License: Apache-2.0 Imports: 5 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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