biz

package
v0.0.0-...-505e429 Latest Latest
Warning

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

Go to latest
Published: Oct 17, 2022 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ProviderSet = wire.NewSet(NewKakaUseCase)

Functions

This section is empty.

Types

type Channel

type Channel struct {
	Id     string
	Source rtsp.Transaction
	SDP    *sdp.Message
	RawSDP []byte
	// contains filtered or unexported fields
}

type ChannelRepo

type ChannelRepo interface {
	Create(ctx context.Context, id string) (*Channel, error)
	Get(ctx context.Context, id string) (*Channel, error)
	Delete(ctx context.Context, id string) error
	List(ctx context.Context) ([]*Channel, error)
}

type KakaUseCase

type KakaUseCase struct {
	// contains filtered or unexported fields
}

func NewKakaUseCase

func NewKakaUseCase(logger log.Logger, repo ChannelRepo) *KakaUseCase

func (*KakaUseCase) CreateChannel

func (uc *KakaUseCase) CreateChannel(ctx context.Context) (*Channel, error)

func (*KakaUseCase) GetChannel

func (uc *KakaUseCase) GetChannel(ctx context.Context, id string) (*Channel, error)

func (*KakaUseCase) ListChannels

func (uc *KakaUseCase) ListChannels(ctx context.Context) ([]*Channel, error)

func (*KakaUseCase) SetChannelPresentationDescription

func (uc *KakaUseCase) SetChannelPresentationDescription(ctx context.Context, id string, sdp *sdp.Message, raw []byte) error

Jump to

Keyboard shortcuts

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