This commit is contained in:
PB
2022-12-01 04:15:16 +01:00
parent ba54941b45
commit cf2ec45b9a
11 changed files with 32 additions and 58 deletions

14
fluentd/config.go Normal file
View File

@@ -0,0 +1,14 @@
package fluentd
import (
"strconv"
"strings"
)
func ParseAddr(addr string) (string, int) {
p := strings.Split(addr, ":")
fHost := p[0]
fPort, _ := strconv.Atoi(p[1])
return fHost, fPort
}