service

package
v0.2.2 Latest Latest
Warning

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

Go to latest
Published: Dec 22, 2025 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterAnchorInfo added in v0.0.3

func RegisterAnchorInfo(i IAnchorInfo)

func RegisterLiveCookie

func RegisterLiveCookie(i ILiveCookie)

func RegisterLiveHistory

func RegisterLiveHistory(i ILiveHistory)

func RegisterLiveManage

func RegisterLiveManage(i ILiveManage)

Types

type IAnchorInfo added in v0.0.3

type IAnchorInfo interface {
	List(ctx context.Context, req *v1.GetAnchorListReq) (res *v1.GetAnchorListRes, err error)
	Add(ctx context.Context, req *v1.PostAnchorReq) (res *v1.PostAnchorRes, err error)
	Delete(ctx context.Context, req *v1.DeleteAnchorReq) (res *v1.DeleteAnchorRes, err error)
	StatInfo(ctx context.Context, req *v1.GetAnchorStatInfoReq) (res *v1.GetAnchorStatInfoRes, err error)
}

func AnchorInfo added in v0.0.3

func AnchorInfo() IAnchorInfo

type ILiveCookie

type ILiveCookie interface {
	All(ctx context.Context, req *v1.GetAllCookieReq) (res *v1.GetAllCookieRes, err error)
	Add(ctx context.Context, req *v1.PostLiveCookieReq) (res *v1.PostLiveCookieRes, err error)
	Update(ctx context.Context, req *v1.PutLiveCookieReq) (res *v1.PutLiveCookieRes, err error)
	Delete(ctx context.Context, req *v1.DeleteLiveCookieReq) (res *v1.DeleteLiveCookieRes, err error)
}

func LiveCookie

func LiveCookie() ILiveCookie

type ILiveHistory

type ILiveHistory interface {
	List(ctx context.Context, req *v1.GetLiveHistoryListReq) (res *v1.GetLiveHistoryListRes, err error)
	Delete(ctx context.Context, req *v1.DeleteLiveHistoryReq) (res *v1.DeleteLiveHistoryRes, err error)
	DeleteAll(ctx context.Context, req *v1.DeleteAllHistoryReq) (res *v1.DeleteAllHistoryRes, err error)
}

func LiveHistory

func LiveHistory() ILiveHistory

type ILiveManage

func LiveManage

func LiveManage() ILiveManage

Jump to

Keyboard shortcuts

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