Versions in this module Expand all Collapse all v1 v1.1.0 Jun 10, 2019 v1.0.2 Mar 8, 2019 Changes in this version + func HandleWindowsCR() v1.0.1 Feb 23, 2019 Changes in this version + const CHAIN_NAME — linux/amd64 + const START_FORWARDING — linux/amd64 + const STOP_FORWARDING — linux/amd64 + var CMD_EXEC_FAIDED = errors.New("iptables command exec failed.") — linux/amd64 + var INVALID_IP_ADDR = errors.New("invalid ip address.") — linux/amd64 + func Array32ToUUID(bytes [32]byte) string + func BytesToUint16(buf []byte) uint16 + func BytesToUint32(buf []byte) uint32 + func BytesToUint64(buf []byte) uint64 + func DeletePortReuseRules(localPort uint16, reusedPort uint16) error — linux/amd64 + func FileExists(filename string) bool + func GetFileSize(path string) int64 + func GetRandomString(length int) string + func GetSystemType() (osType uint32) + func IpToUint32(ip net.IP) uint32 + func Md5(text string) string + func NewUUID() string + func PacketSize(packet interface{}) (uint64, error) + func RemoveDuplicateElement(addrs []string) []string + func SetPortReuseRules(localPort uint16, reusedPort uint16) error — linux/amd64 + func Sha256(text string) string + func SliceTo32ByteArray(buf []byte) [32]byte + func UUIDToArray32(hashID string) [32]byte + func Uint16ToBytes(i uint16) []byte + func Uint32ToBytes(i uint32) []byte + func Uint32ToIp(nn uint32) net.IP + func Uint64ToBytes(i uint64) []byte + type KMP struct + Pattern string + Prefix []int + Size int + func NewKMP(pattern string) (*KMP, error) + func (kmp *KMP) String() string