repositoriy

package
v0.0.0-...-de73faa Latest Latest
Warning

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

Go to latest
Published: Jul 20, 2020 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CachedChannelRepository

type CachedChannelRepository struct {
	*gocache.Cache
}

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

type CachedInformationRepository struct {
	*gocache.Cache
}

func NewCachedInformationRepository

func NewCachedInformationRepository(cache *gocache.Cache) *CachedInformationRepository

func (*CachedInformationRepository) GetInfo

func (*CachedInformationRepository) SetInfo

func (r *CachedInformationRepository) SetInfo(info []*model.Information)

type ChannelDailySummaryRepository

type ChannelDailySummaryRepository struct {
	*gorm.DB
}

func NewChannelDailySummaryRepository

func NewChannelDailySummaryRepository(db *gorm.DB) *ChannelDailySummaryRepository

func (*ChannelDailySummaryRepository) Create

func (*ChannelDailySummaryRepository) FindChannelDailySummaryByName

func (r *ChannelDailySummaryRepository) FindChannelDailySummaryByName(name string) []*model.ChannelDailySummary

type ChannelLogRepository

type ChannelLogRepository struct {
	*gorm.DB
}

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

type ChannelRepository struct {
	*gorm.DB
}

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

type InformationRepository struct {
	*gorm.DB
}

func NewInformationRepository

func NewInformationRepository(db *gorm.DB) *InformationRepository

func (*InformationRepository) Find

Jump to

Keyboard shortcuts

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