Documentation
¶
Index ¶
- func AddSyncTask(ctx context.Context, path, filename, syncPath string) int
- func BatchUpdateStatus(ctx context.Context, status int, ids []int)
- func ExistsTodayHistory(ctx context.Context, anchorId int, date string) bool
- func GenLiveSessionById(ctx context.Context, liveId int) *lives.LiveSession
- func GenLiveSessionsByIds(ctx context.Context, liveIds []int) []*lives.LiveSession
- func GetAllAnchorInfo(ctx context.Context) []*entity.AnchorInfo
- func GetAllPushChannel(ctx context.Context) []*model.PushChannel
- func GetSettings(ctx context.Context, key string) int
- func GetSyncTaskById(ctx context.Context, sid int) *entity.FileSyncTask
- func GetTaskById(ctx context.Context, tid int) *entity.FileCheckTask
- func GetTasksWithStatus(ctx context.Context, status int) []*entity.FileSyncTask
- func IsNonLiveHours(ctx context.Context, liveId int) bool
- func SaveTodayHistory(ctx context.Context, history do.AnchorInfoHistory) error
- func UpdateAnchorInfo(ctx context.Context, info do.AnchorInfo, aid int) error
- func UpdateCheckTask(ctx context.Context, taskId, progress, status int, createdAt *gtime.Time) error
- func UpdateCheckTaskFileStatus(ctx context.Context, taskId, status int) error
- func UpdateCheckTaskProgress(ctx context.Context, taskId, progress int) error
- func UpdateRoomInfo(ctx context.Context, liveSession *lives.LiveSession)
- func UpdateSyncTaskStatus(ctx context.Context, taskId, status int, createdAt *gtime.Time) error
- type LiveDuration
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddSyncTask ¶ added in v0.2.3
func BatchUpdateStatus ¶ added in v0.2.3
func ExistsTodayHistory ¶ added in v0.0.3
func GenLiveSessionById ¶
func GenLiveSessionById(ctx context.Context, liveId int) *lives.LiveSession
func GenLiveSessionsByIds ¶
func GenLiveSessionsByIds(ctx context.Context, liveIds []int) []*lives.LiveSession
func GetAllAnchorInfo ¶ added in v0.0.3
func GetAllAnchorInfo(ctx context.Context) []*entity.AnchorInfo
func GetAllPushChannel ¶ added in v0.0.2
func GetAllPushChannel(ctx context.Context) []*model.PushChannel
func GetSyncTaskById ¶ added in v0.2.3
func GetSyncTaskById(ctx context.Context, sid int) *entity.FileSyncTask
func GetTaskById ¶ added in v0.0.9
func GetTaskById(ctx context.Context, tid int) *entity.FileCheckTask
func GetTasksWithStatus ¶ added in v0.2.3
func GetTasksWithStatus(ctx context.Context, status int) []*entity.FileSyncTask
func SaveTodayHistory ¶ added in v0.0.3
func SaveTodayHistory(ctx context.Context, history do.AnchorInfoHistory) error
func UpdateAnchorInfo ¶ added in v0.0.3
func UpdateCheckTask ¶ added in v0.0.9
func UpdateCheckTaskFileStatus ¶ added in v0.0.9
func UpdateCheckTaskProgress ¶ added in v0.0.9
func UpdateRoomInfo ¶
func UpdateRoomInfo(ctx context.Context, liveSession *lives.LiveSession)
Types ¶
type LiveDuration ¶ added in v0.0.4
Click to show internal directories.
Click to hide internal directories.