Skip to content

Commit

Permalink
Add DDOS constructor
Browse files Browse the repository at this point in the history
  • Loading branch information
thegodenage committed May 4, 2024
1 parent c922c93 commit 5f0bd56
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions internal/ddosml/ml.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,10 @@ package ddosml
type DDOS struct {
isEnabled bool
}

// NewDDOS creates new ddos ML analyzer used to
// analyze requests in order to find out if given
// request is ddos attack or not.
func NewDDOS(isEnabled bool) *DDOS {
return &DDOS{isEnabled: isEnabled}
}

0 comments on commit 5f0bd56

Please sign in to comment.