utils

package
v1.5.0 Latest Latest
Warning

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

Go to latest
Published: Aug 10, 2026 License: MIT Imports: 22 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CommunityIdFromTargets

func CommunityIdFromTargets(sourceTarget, destinationTarget *schema.Target, protocolNumber int) string

func DefaultHeaderExtractor

func DefaultHeaderExtractor(requestResponse any) string

func DefaultHeaderExtractorWithMasking

func DefaultHeaderExtractorWithMasking(requestResponse any, maskNames []string, maskValue string) string

func DefaultMaskedHeaderExtractor

func DefaultMaskedHeaderExtractor(requestResponse any) string

func EnrichWithGmailMessage

func EnrichWithGmailMessage(base *schema.Base, msg *gmailMessage.Message)

func EnrichWithTlsConnectionState

func EnrichWithTlsConnectionState(base *schema.Base, connectionState *tls.ConnectionState, clientInitiated bool)

func EnrichWithTlsContext

func EnrichWithTlsContext(base *schema.Base, tlsContext *motmedelTlsTypes.TlsContext)

func EventCreatedReplaceAttr

func EventCreatedReplaceAttr(groups []string, attr slog.Attr) slog.Attr

func FlowTupleFromTargets

func FlowTupleFromTargets(sourceTarget, destinationTarget *schema.Target, protocolNumber int) *flow_tuple.Tuple

func MakeConnectionMessage

func MakeConnectionMessage(base *schema.Base, suffix string) string

func MakeHttpMessage

func MakeHttpMessage(base *schema.Base) string

func ParseEmailAddress

func ParseEmailAddress(value string) (*schema.EmailAddress, error)

func ParseHttp

func ParseHttp(
	request *http.Request,
	requestBodyData []byte,
	response *http.Response,
	responseBodyData []byte,
) (*schema.Base, error)

func ParseHttpContext

func ParseHttpContext(httpContext *motmedelHttpTypes.HttpContext) (*schema.Base, error)

func ParseWhoisContext

func ParseWhoisContext(whoisContext *motmedelWhoisTypes.WhoisContext) (*schema.Base, error)

func TimestampReplaceAttr

func TimestampReplaceAttr(groups []string, attr slog.Attr) slog.Attr

Types

This section is empty.

Jump to

Keyboard shortcuts

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