utils

package
v0.0.0-...-16240a8 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 6, 2022 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateEnvMessage

func CreateEnvMessage(headers amqp.Table) (*CbEnvironmentMsg, error)

func FastStringConcat

func FastStringConcat(substrings ...string) string

func GetIPAddress

func GetIPAddress(ipAddress *CbIpAddr) string

func GetIPv4Address

func GetIPv4Address(addr uint32) string

func GetIPv4AddressSigned

func GetIPv4AddressSigned(addr int32) string

* NOTE: the interface_ip and comms_ip (from JSON events) are byte-flipped from the IP addresses in the * sensor protobuf events.

func GetMd5Hexdigest

func GetMd5Hexdigest(src []byte) string

func GetProcessGUID

func GetProcessGUID(m *CbEventMsg) string

* conversion routines

func GetSha256Hexdigest

func GetSha256Hexdigest(src []byte) string

func GetUnicodeFromUTF8

func GetUnicodeFromUTF8(src []byte) string

func IsGzip

func IsGzip(fp *os.File) bool

func MakeGUID

func MakeGUID(sensorID, pid int32, createTime int64) string

func Ntohs

func Ntohs(p uint16) uint16

func ParseIntFromHeader

func ParseIntFromHeader(src interface{}) (int64, error)

func WindowsTimeToUnixTime

func WindowsTimeToUnixTime(windowsTime int64) uint64

func WindowsTimeToUnixTimeFloat

func WindowsTimeToUnixTimeFloat(windowsTime int64) float64

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL