From 52a36118c5a30e069267411ea9bec8037e80bb32 Mon Sep 17 00:00:00 2001 From: q191201771 <191201771@qq.com> Date: Tue, 13 Sep 2022 20:11:20 +0800 Subject: [PATCH] pr patch --- pkg/logic/auth.go | 12 +++++++++++- pkg/logic/logic.go | 2 ++ 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/pkg/logic/auth.go b/pkg/logic/auth.go index 7749883..6adb8c4 100644 --- a/pkg/logic/auth.go +++ b/pkg/logic/auth.go @@ -1,11 +1,21 @@ +// Copyright 2022, Chef. All rights reserved. +// https://github.com/q191201771/lal +// +// Use of this source code is governed by a MIT-style license +// that can be found in the License file. +// +// Author: Chef (191201771@qq.com) + package logic import ( "github.com/q191201771/lal/pkg/base" ) +// TODO(chef): [refactor] 将simple_auth.go的内容合并过来,没必要弄两个文件 202209 + type IAuthentication interface { OnPubStart(info base.PubStartInfo) error OnSubStart(info base.SubStartInfo) error OnHls(streamName, urlParam string) error -} \ No newline at end of file +} diff --git a/pkg/logic/logic.go b/pkg/logic/logic.go index b83cd25..137d295 100644 --- a/pkg/logic/logic.go +++ b/pkg/logic/logic.go @@ -94,6 +94,8 @@ type Option struct { // NotifyHandler INotifyHandler + // TODO(chef): [refactor] 考虑用INotifyHandler实现ModConfigGroupCreator和IAuthentication 202209 + // ModConfigGroupCreator // This func help us modify the group configuration base on appName or streamName // so that group can have it own configuration (configuration can be in other source like db)