Documentation ¶
Index ¶
- Variables
- func AdaptiveK(length, kMin, kMax, N int) int
- func ConvertIPv6ToUint32Array(ip net.IP) ([4]uint32, error)
- func ConvertToIPV4(ip net.IP) (uint32, bool)
- func CreateShingles(data []byte, k int) map[string]struct{}
- func CreateYamlFile(path string, fileName string, Logger *zap.Logger) (bool, error)
- func GetLocalIPv4() (net.IP, error)
- func GetLocalIPv6() (net.IP, error)
- func IPToDotDecimal(ip net.IP) string
- func IsDockerRelatedCommand(cmd string) (bool, string)
- func JaccardSimilarity(setA, setB map[string]struct{}) float64
- func Passthrough(clientConn, destConn net.Conn, requestBuffer [][]byte, recover func(id int), ...) ([]byte, error)
- func PeekBytes(reader *bufio.Reader) ([]byte, error)
- func ReadBuffConn(conn net.Conn, bufferChannel chan []byte, errChannel chan error, ...) error
- func ReadBytes(reader io.Reader) ([]byte, error)
- func ToIP4AddressStr(ip uint32) string
- func ToIPv6AddressStr(ip [4]uint32) string
- func ValidatePath(path string) (string, error)
Constants ¶
This section is empty.
Variables ¶
View Source
var Emoji = "\U0001F430" + " Keploy:"
Functions ¶
func CreateShingles ¶
func CreateYamlFile ¶
createYamlFile is used to create the yaml file along with the path directory (if does not exists)
func GetLocalIPv4 ¶
func GetLocalIPv6 ¶
func IPToDotDecimal ¶
func IsDockerRelatedCommand ¶
It checks if the cmd is related to docker or not, it also returns if its a docker compose file
func JaccardSimilarity ¶
JaccardSimilarity computes the Jaccard similarity between two sets of shingles.
func Passthrough ¶
func ReadBuffConn ¶
func ReadBytes ¶
ReadBytes function is utilized to read the complete message from the reader until the end of the file (EOF). It returns the content as a byte array.
func ToIP4AddressStr ¶
ToIP4AddressStr converts the integer IP4 Address to the octet format
func ToIPv6AddressStr ¶
func ValidatePath ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.