repository

package
v0.0.0-...-d6daade Latest Latest
Warning

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

Go to latest
Published: Oct 30, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AiringScheduleRepository

type AiringScheduleRepository interface {
	// Define your methods here
	Create(mediaId uint, schedules *model.AiringSchedule) error
	UpdateOrCreate(mediaId uint, schedule *model.AiringSchedule) error
	GetNextNotAnnounced() (*model.AiringSchedule, error)
}

func NewAiringScheduleRepository

func NewAiringScheduleRepository(db *gorm.DB) AiringScheduleRepository

type DatabaseRepositories

type DatabaseRepositories struct {
	Media          MediaRepository
	AiringSchedule AiringScheduleRepository
	MediaTitle     MediaTitleRepository
	ExternalLinks  ExternalLinksRepository
	SocialPost     SocialPostRepository
	Scheduler      SchedulerRepository
}

DatabaseRepositories holds instances of different repositories

func NewDatabaseRepositories

func NewDatabaseRepositories(db *gorm.DB) *DatabaseRepositories

NewDatabaseRepositories creates and returns a new instance of DatabaseRepositories

type ExternalLinksRepository

type ExternalLinksRepository interface {
	// Define your methods here
	Create(mediaId uint, links *[]model.ExternalLink) error
	UpdateOrCreate(mediaId uint, links *[]model.ExternalLink) error
}

func NewExternalLinksRepository

func NewExternalLinksRepository(db *gorm.DB) ExternalLinksRepository

type MediaRepository

type MediaRepository interface {
	// Define your methods here
	Create(media *model.Media) error
	UpdateOrCreate(media *model.Media) error
}

func NewMediaRepository

func NewMediaRepository(db *gorm.DB) MediaRepository

type MediaTitleRepository

type MediaTitleRepository interface {
	// Define your methods here
	Create(mediaId uint, title *model.MediaTitle) error
	UpdateOrCreate(mediaId uint, title *model.MediaTitle) error
}

func NewMediaTitleRepository

func NewMediaTitleRepository(db *gorm.DB) MediaTitleRepository

type SchedulerRepository

type SchedulerRepository interface {
	// Define your methods here
	GetActiveJobs() ([]model.Scheduler, error)
	Update(schedule model.Scheduler) error
}

func NewSchedulerRepository

func NewSchedulerRepository(db *gorm.DB) SchedulerRepository

type SocialPostRepository

type SocialPostRepository interface {
	// Define your methods here
	Create(AiringScheduleId uint, post *model.SocialPost) error
	UpdateOrCreate(AiringScheduleId uint, post *model.SocialPost) error
}

func NewSocialPostRepository

func NewSocialPostRepository(db *gorm.DB) SocialPostRepository

Jump to

Keyboard shortcuts

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