model

package
v0.0.0-...-514e0f0 Latest Latest
Warning

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

Go to latest
Published: Nov 14, 2023 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PartyRepo

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

func New

func New(db *sqlx.DB) *PartyRepo

func (*PartyRepo) CreateWatchParty

func (p *PartyRepo) CreateWatchParty(userID, channelID int) error

func (*PartyRepo) DeleteFromWatchParty

func (p *PartyRepo) DeleteFromWatchParty(userID, partyID int) error

func (*PartyRepo) GetPartyState

func (p *PartyRepo) GetPartyState(partyID int) (*proto.PartyState, error)

func (*PartyRepo) JoinWatchParty

func (p *PartyRepo) JoinWatchParty(userID, partyID int) error

func (*PartyRepo) NewVideo

func (p *PartyRepo) NewVideo(videoLocation, Title string, VideoID, PartyID int) error

func (*PartyRepo) NextVideo

func (p *PartyRepo) NextVideo(partyID int) error

func (*PartyRepo) UpdateLeader

func (p *PartyRepo) UpdateLeader(partyID, userID int) error

Not needed for MVP

Jump to

Keyboard shortcuts

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