playout

package
Version: v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Aug 9, 2021 License: GPL-3.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 Store

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

Store contains our dependency

func NewStore

func NewStore(db *sqlx.DB) *Store

NewStore creates a new store

func (*Store) DeleteChannel

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

DeleteChannel delete 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

Source Files

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL