manager

package
v1.9.4 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: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Opt

type Opt func(*opt) error

Opt is a functional option for filer manager configuration.

func WithSchema

func WithSchema(schema string) Opt

WithSchema sets the database schema used for profile persistence

func WithTracer

func WithTracer(tracer trace.Tracer) Opt

WithTracer sets the tracer used for tracing operations.

type Profile

type Profile struct {
	pg.PoolConn
	// contains filtered or unexported fields
}

func New

func New(ctx context.Context, pool pg.PoolConn, opts ...Opt) (_ *Profile, err error)

New creates a new profile manger

func (*Profile) CreateAudioProfile

func (profile *Profile) CreateAudioProfile(ctx context.Context, req schema.AudioProfile) (_ *schema.AudioProfile, err error)

func (*Profile) DeleteAudioProfile

func (profile *Profile) DeleteAudioProfile(ctx context.Context, uuid uuid.UUID) (_ *schema.AudioProfile, err error)

func (*Profile) GetAudioProfile

func (profile *Profile) GetAudioProfile(ctx context.Context, uuid uuid.UUID) (_ *schema.AudioProfile, err error)

func (*Profile) GetCodec

func (profile *Profile) GetCodec(ctx context.Context, name string, req schema.CodecGetRequest) (_ *schema.Codec, err error)

func (*Profile) GetFormat

func (profile *Profile) GetFormat(ctx context.Context, name string) (_ *schema.Format, err error)

func (*Profile) ListChannelLayouts

func (profile *Profile) ListChannelLayouts(ctx context.Context, req schema.ChannelLayoutListRequest) (_ schema.ChannelLayoutList, err error)

ListChannelLayouts returns standard FFmpeg channel layouts.

func (*Profile) ListCodecs

func (profile *Profile) ListCodecs(ctx context.Context, req schema.CodecListRequest) (_ *schema.CodecList, err error)

func (*Profile) ListDevices

func (profile *Profile) ListDevices(ctx context.Context, req schema.DeviceListRequest) (_ schema.DeviceList, err error)

ListDevices returns all devices available for the registered input/output audio/video device formats (e.g. avfoundation, alsa, pulse).

func (*Profile) ListFormats

func (profile *Profile) ListFormats(ctx context.Context, req schema.FormatListRequest) (_ *schema.FormatList, err error)

func (*Profile) ListPixelFormats

func (profile *Profile) ListPixelFormats(ctx context.Context, req schema.PixelFormatListRequest) (_ schema.PixelFormatList, err error)

ListPixelFormats returns all supported pixel formats.

func (*Profile) ListSampleFormats

func (profile *Profile) ListSampleFormats(ctx context.Context, req schema.SampleFormatListRequest) (_ schema.SampleFormatList, err error)

ListSampleFormats returns all supported sample formats.

func (*Profile) ResolveAudioProfile added in v1.9.3

func (profile *Profile) ResolveAudioProfile(ctx context.Context, req *schema.AudioProfile) (_ *schema.AudioProfile, err error)

func (*Profile) Run

func (profile *Profile) Run(ctx context.Context, logger *slog.Logger) error

func (*Profile) UpdateAudioProfile

func (profile *Profile) UpdateAudioProfile(ctx context.Context, uuid uuid.UUID, meta schema.AudioProfile) (_ *schema.AudioProfile, err error)

Jump to

Keyboard shortcuts

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