mirror of
https://github.com/TeaOSLab/EdgeCommon.git
synced 2025-11-09 00:20:25 +08:00
智能DNS记录的TTL增加多个秒、分钟、年等档位
This commit is contained in:
@@ -9,6 +9,30 @@ type RecordTTL struct {
|
|||||||
|
|
||||||
func FindAllRecordTTL() []*RecordTTL {
|
func FindAllRecordTTL() []*RecordTTL {
|
||||||
return []*RecordTTL{
|
return []*RecordTTL{
|
||||||
|
{
|
||||||
|
Name: "5秒",
|
||||||
|
Value: 5,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
Name: "10秒",
|
||||||
|
Value: 10,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
Name: "30秒",
|
||||||
|
Value: 30,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
Name: "1分钟",
|
||||||
|
Value: 60,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
Name: "3分钟",
|
||||||
|
Value: 3 * 60,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
Name: "5分钟",
|
||||||
|
Value: 5 * 60,
|
||||||
|
},
|
||||||
{
|
{
|
||||||
Name: "10分钟",
|
Name: "10分钟",
|
||||||
Value: 10 * 60,
|
Value: 10 * 60,
|
||||||
@@ -29,5 +53,13 @@ func FindAllRecordTTL() []*RecordTTL {
|
|||||||
Name: "1天",
|
Name: "1天",
|
||||||
Value: 86400,
|
Value: 86400,
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
Name: "30天",
|
||||||
|
Value: 30 * 86400,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
Name: "一年",
|
||||||
|
Value: 365 * 86400,
|
||||||
|
},
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user