-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Add informers and IP map cache
feat: Add informers and IP map cache Signed-off-by: Harisudarsan <[email protected]> change docker build image Signed-off-by: Harisudarsan <[email protected]>
- Loading branch information
1 parent
475a203
commit 6305374
Showing
7 changed files
with
435 additions
and
80 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
package common | ||
|
||
import ( | ||
"strings" | ||
) | ||
|
||
func Extractdata(body string) map[string]string { | ||
|
||
pairs := strings.Split(body, " ") | ||
|
||
// Initialize a map to store extracted values | ||
dataMap := make(map[string]string) | ||
|
||
// Loop through each key-value pair | ||
for _, pair := range pairs { | ||
// Split each pair by '=' to separate key and value | ||
parts := strings.Split(pair, "=") | ||
if len(parts) == 2 { | ||
key := parts[0] | ||
value := parts[1] | ||
dataMap[key] = value | ||
} | ||
} | ||
return dataMap | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.