service

package
v0.0.8 Latest Latest
Warning

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

Go to latest
Published: Nov 9, 2025 License: MIT Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

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 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 UpdateRoomInfo

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

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