Files
EdgeAPI/internal/db/models/node_dao_ext.go

26 lines
804 B
Go
Raw Normal View History

2024-05-17 18:27:26 +08:00
// Copyright 2022 GoEdge CDN goedge.cdn@gmail.com. All rights reserved.
//go:build !plus
// +build !plus
2022-03-25 14:11:17 +08:00
package models
import (
"github.com/TeaOSLab/EdgeAPI/internal/utils"
2023-02-22 17:34:05 +08:00
"github.com/TeaOSLab/EdgeAPI/internal/zero"
2022-03-25 14:11:17 +08:00
"github.com/TeaOSLab/EdgeCommon/pkg/nodeconfigs"
"github.com/iwind/TeaGo/dbs"
)
2023-02-22 17:34:05 +08:00
func (this *NodeDAO) loadServersFromCluster(tx *dbs.Tx, clusterId int64, serverIdMap map[int64]zero.Zero) ([]*Server, error) {
return nil, nil
}
2022-04-04 12:08:08 +08:00
func (this *NodeDAO) composeExtConfig(tx *dbs.Tx, config *nodeconfigs.NodeConfig, clusterIds []int64, cacheMap *utils.CacheMap) error {
2022-03-25 14:11:17 +08:00
return nil
}
2023-05-17 18:42:21 +08:00
// CheckNodeIPAddresses 检查节点IP地址
func (this *NodeDAO) CheckNodeIPAddresses(tx *dbs.Tx, node *Node) (shouldSkip bool, shouldOverwrite bool, ipAddressStrings []string, err error) {
return
}