实现节点自动切换到备用IP

This commit is contained in:
GoEdgeLab
2021-09-13 10:51:05 +08:00
parent a0fbd3d831
commit 0077f045e9
14 changed files with 112 additions and 39 deletions

View File

@@ -11,6 +11,7 @@ type NodeIPAddressLog struct {
IsOn uint8 `field:"isOn"` // 是否启用
CanAccess uint8 `field:"canAccess"` // 是否可访问
Day string `field:"day"` // YYYYMMDD用来清理
BackupIP string `field:"backupIP"` // 备用IP
}
type NodeIPAddressLogOperator struct {
@@ -23,6 +24,7 @@ type NodeIPAddressLogOperator struct {
IsOn interface{} // 是否启用
CanAccess interface{} // 是否可访问
Day interface{} // YYYYMMDD用来清理
BackupIP interface{} // 备用IP
}
func NewNodeIPAddressLogOperator() *NodeIPAddressLogOperator {