-
Notifications
You must be signed in to change notification settings - Fork 468
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- `/app/demo/dispatch`处理`on_update`事件回调 - HTTP Notify增加新事件回调`/on_server_start` - HTTP API `/api/stat/lal_info` 中增加`server_id`字段 - 增加`gen_tag.sh`,用于打tag
- Loading branch information
1 parent
08287e7
commit 34bd5cf
Showing
29 changed files
with
483 additions
and
229 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
// Copyright 2020, 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 ([email protected]) | ||
|
||
package main | ||
|
||
// 服务启动前,设置好一些配置 | ||
type Config struct { | ||
// 本服务HTTP监听端口,用于接收各lal节点的HTTP Notify | ||
ListenAddr string | ||
|
||
// 配置向本服务汇报的节点信息 | ||
ServerID2Server map[string]Server | ||
|
||
// 级联拉流时,携带该URL参数,使得我们可以区分是级联拉流还是用户拉流 | ||
PullSecretParam string | ||
|
||
// 检测lal节点update报活的超时时间 | ||
ServerTimeoutSec int | ||
} | ||
|
||
// lal节点静态配置信息 | ||
type Server struct { | ||
RTMPAddr string // 可用于级联拉流的RTMP地址 | ||
APIAddr string // HTTP API接口地址 | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.