service

package
v0.2.5 Latest Latest
Warning

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

Go to latest
Published: Feb 4, 2026 License: MIT Imports: 22 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddSyncTask added in v0.2.3

func AddSyncTask(ctx context.Context, path, filename, syncPath string) int

func BatchUpdateStatus added in v0.2.3

func BatchUpdateStatus(ctx context.Context, status int, ids []int)

func ExistsTodayHistory added in v0.0.3

func ExistsTodayHistory(ctx context.Context, anchorId int, date string) bool

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 GetSettings added in v0.0.9

func GetSettings(ctx context.Context, key string) int

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 IsNonLiveHours added in v0.0.5

func IsNonLiveHours(ctx context.Context, liveId int) bool

func SaveTodayHistory added in v0.0.3

func SaveTodayHistory(ctx context.Context, history do.AnchorInfoHistory) error

func UpdateAnchorInfo added in v0.0.3

func UpdateAnchorInfo(ctx context.Context, info do.AnchorInfo, aid int) error

func UpdateCheckTask added in v0.0.9

func UpdateCheckTask(ctx context.Context, taskId, progress, status int, createdAt *gtime.Time) error

func UpdateCheckTaskFileStatus added in v0.0.9

func UpdateCheckTaskFileStatus(ctx context.Context, taskId, status int) error

func UpdateCheckTaskProgress added in v0.0.9

func UpdateCheckTaskProgress(ctx context.Context, taskId, progress int) error

func UpdateRoomInfo

func UpdateRoomInfo(ctx context.Context, liveSession *lives.LiveSession)

func UpdateSyncTaskStatus added in v0.2.3

func UpdateSyncTaskStatus(ctx context.Context, taskId, status int, createdAt *gtime.Time) error

func UpdateSyncTaskStatusWithError added in v0.2.4

func UpdateSyncTaskStatusWithError(ctx context.Context, taskId, status int, errMsg string, createdAt *gtime.Time) error

Types

type LiveDuration added in v0.0.4

type LiveDuration struct {
	StartTime string
	EndTime   string
}

Jump to

Keyboard shortcuts

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