github.com/TeaOSLab/EdgeNode@v1.3.8/internal/firewalls/ddos_protection_others.go (about) 1 // Copyright 2022 Liuxiangchao iwind.liu@gmail.com. All rights reserved. 2 //go:build !linux 3 // +build !linux 4 5 package firewalls 6 7 import ( 8 "github.com/TeaOSLab/EdgeCommon/pkg/serverconfigs/ddosconfigs" 9 ) 10 11 var SharedDDoSProtectionManager = NewDDoSProtectionManager() 12 13 type DDoSProtectionManager struct { 14 } 15 16 func NewDDoSProtectionManager() *DDoSProtectionManager { 17 return &DDoSProtectionManager{} 18 } 19 20 func (this *DDoSProtectionManager) Apply(config *ddosconfigs.ProtectionConfig) error { 21 return nil 22 }