You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
27 lines
430 B
27 lines
430 B
package service
|
|
|
|
import (
|
|
"context"
|
|
"practice_Go/api/v1/live_streams"
|
|
)
|
|
|
|
type (
|
|
ILive interface {
|
|
GetLiveList(ctx context.Context, req *live_streams.GetLiveListReq) (res live_streams.GetLiveListRes, err error)
|
|
}
|
|
)
|
|
|
|
var (
|
|
localLive ILive
|
|
)
|
|
|
|
func Live() ILive {
|
|
if localLive == nil {
|
|
panic("implement not found for interface IUser, forgot register?")
|
|
}
|
|
return localLive
|
|
}
|
|
|
|
func RegisterLives(i ILive) {
|
|
localLive = i
|
|
}
|