Documentation ¶
Index ¶
- type CachedChannelRepository
- type CachedInformationRepository
- type ChannelDailySummaryRepository
- type ChannelLogRepository
- func (r *ChannelLogRepository) CreateChannelLogs(logTime time.Time, channels model.ChannelList)
- func (r *ChannelLogRepository) FindChannelLogsByLogTime(logTime time.Time) []*model.ChannelLog
- func (r *ChannelLogRepository) FindChannelLogsByNameAndLogTime(name string, logTime time.Time) []*model.ChannelLog
- type ChannelRepository
- type InformationRepository
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CachedChannelRepository ¶
func NewCachedChannelRepository ¶
func NewCachedChannelRepository(cache *gocache.Cache) *CachedChannelRepository
func (*CachedChannelRepository) GetChannels ¶
func (r *CachedChannelRepository) GetChannels() (model.ChannelList, bool)
func (*CachedChannelRepository) SetChannels ¶
func (r *CachedChannelRepository) SetChannels(channels model.ChannelList)
type CachedInformationRepository ¶
func NewCachedInformationRepository ¶
func NewCachedInformationRepository(cache *gocache.Cache) *CachedInformationRepository
func (*CachedInformationRepository) GetInfo ¶
func (r *CachedInformationRepository) GetInfo() ([]*model.Information, bool)
func (*CachedInformationRepository) SetInfo ¶
func (r *CachedInformationRepository) SetInfo(info []*model.Information)
type ChannelDailySummaryRepository ¶
func NewChannelDailySummaryRepository ¶
func NewChannelDailySummaryRepository(db *gorm.DB) *ChannelDailySummaryRepository
func (*ChannelDailySummaryRepository) Create ¶
func (r *ChannelDailySummaryRepository) Create(summary *model.ChannelDailySummary)
func (*ChannelDailySummaryRepository) FindChannelDailySummaryByName ¶
func (r *ChannelDailySummaryRepository) FindChannelDailySummaryByName(name string) []*model.ChannelDailySummary
type ChannelLogRepository ¶
func NewChannelLogRepository ¶
func NewChannelLogRepository(db *gorm.DB) *ChannelLogRepository
func (*ChannelLogRepository) CreateChannelLogs ¶
func (r *ChannelLogRepository) CreateChannelLogs(logTime time.Time, channels model.ChannelList)
func (*ChannelLogRepository) FindChannelLogsByLogTime ¶
func (r *ChannelLogRepository) FindChannelLogsByLogTime(logTime time.Time) []*model.ChannelLog
func (*ChannelLogRepository) FindChannelLogsByNameAndLogTime ¶
func (r *ChannelLogRepository) FindChannelLogsByNameAndLogTime(name string, logTime time.Time) []*model.ChannelLog
type ChannelRepository ¶
func NewChannelRepository ¶
func NewChannelRepository(db *gorm.DB) *ChannelRepository
func (*ChannelRepository) FindPlayingChannels ¶
func (r *ChannelRepository) FindPlayingChannels() model.ChannelList
func (*ChannelRepository) SaveOrCreate ¶
func (r *ChannelRepository) SaveOrCreate(channel *model.Channel)
type InformationRepository ¶
func NewInformationRepository ¶
func NewInformationRepository(db *gorm.DB) *InformationRepository
func (*InformationRepository) Find ¶
func (r *InformationRepository) Find() []*model.Information
Click to show internal directories.
Click to hide internal directories.