playout

package
v0.9.8 Latest Latest
Warning

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

Go to latest
Published: May 18, 2025 License: GPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewStore

func NewStore(db *sqlx.DB, cdn *s3.S3, conf *creator.Config) creator.ChannelRepo

NewStore creates a new store

Types

type Store

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

Store contains our dependency

func (*Store) DeleteChannel

func (s *Store) DeleteChannel(ctx context.Context, urlName string) error

DeleteChannel delete a channel

func (*Store) GetChannel added in v0.9.5

func (s *Store) GetChannel(ctx context.Context, urlName string) (playout.Channel, error)

GetChannel gets a channel

func (*Store) ListChannels

func (s *Store) ListChannels(ctx context.Context) ([]playout.Channel, error)

ListChannels list all channels

func (*Store) NewChannel

func (s *Store) NewChannel(ctx context.Context, ch playout.Channel) error

NewChannel create a new channel

func (*Store) UpdateChannel

func (s *Store) UpdateChannel(ctx context.Context, ch playout.Channel) error

UpdateChannel update a channel

Jump to

Keyboard shortcuts

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